Package glide.api.models.commands.scan
Class HScanOptions
- java.lang.Object
-
- glide.api.models.commands.scan.BaseScanOptions
-
- glide.api.models.commands.scan.HScanOptions
-
public class HScanOptions extends BaseScanOptions
Optional arguments forHashBaseCommands.hscan(String, String, HScanOptions).- See Also:
- valkey.io
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classHScanOptions.HScanOptionsBuilder<C extends HScanOptions,B extends HScanOptions.HScanOptionsBuilder<C,B>>-
Nested classes/interfaces inherited from class glide.api.models.commands.scan.BaseScanOptions
BaseScanOptions.BaseScanOptionsBuilder<C extends BaseScanOptions,B extends BaseScanOptions.BaseScanOptionsBuilder<C,B>>
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringNO_VALUES_APIOption string to include in the HSCAN command when values are not included.protected booleannoValuesWhen set to true, the command will not include values in the results.-
Fields inherited from class glide.api.models.commands.scan.BaseScanOptions
count, COUNT_OPTION_STRING, MATCH_OPTION_STRING, matchPattern, matchPatternBinary
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedHScanOptions(HScanOptions.HScanOptionsBuilder<?,?> b)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static HScanOptions.HScanOptionsBuilder<?,?>builder()protected booleancanEqual(java.lang.Object other)booleanequals(java.lang.Object o)inthashCode()java.lang.String[]toArgs()Creates the arguments to be used inSCANcommands.GlideString[]toGlideStringArgs()Creates the arguments to be used inHSCANcommands.
-
-
-
Field Detail
-
NO_VALUES_API
public static final java.lang.String NO_VALUES_API
Option string to include in the HSCAN command when values are not included.- See Also:
- Constant Field Values
-
noValues
protected boolean noValues
When set to true, the command will not include values in the results. This option is available from Valkey version 8.0.0 and above.
-
-
Constructor Detail
-
HScanOptions
protected HScanOptions(HScanOptions.HScanOptionsBuilder<?,?> b)
-
-
Method Detail
-
toArgs
public java.lang.String[] toArgs()
Description copied from class:BaseScanOptionsCreates the arguments to be used inSCANcommands.- Overrides:
toArgsin classBaseScanOptions- Returns:
- a String array that holds the options and their arguments.
-
toGlideStringArgs
public GlideString[] toGlideStringArgs()
Creates the arguments to be used inHSCANcommands.- Overrides:
toGlideStringArgsin classBaseScanOptions- Returns:
- a GlideString array that holds the options and their arguments.
-
builder
public static HScanOptions.HScanOptionsBuilder<?,?> builder()
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equalsin classBaseScanOptions
-
canEqual
protected boolean canEqual(java.lang.Object other)
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
-