Package glide.api.models.commands.scan
Class ZScanOptions
- java.lang.Object
-
- glide.api.models.commands.scan.BaseScanOptions
-
- glide.api.models.commands.scan.ZScanOptions
-
public class ZScanOptions extends BaseScanOptions
Optional arguments forSortedSetBaseCommands.zscan(String, String, ZScanOptions).- See Also:
- valkey.io
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classZScanOptions.ZScanOptionsBuilder<C extends ZScanOptions,B extends ZScanOptions.ZScanOptionsBuilder<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_SCORES_APIOption string to include in the ZSCAN command when scores are not included.protected booleannoScoresWhen set to true, the command will not include scores 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 protectedZScanOptions(ZScanOptions.ZScanOptionsBuilder<?,?> b)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ZScanOptions.ZScanOptionsBuilder<?,?>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 inZSCANcommands.
-
-
-
Field Detail
-
NO_SCORES_API
public static final java.lang.String NO_SCORES_API
Option string to include in the ZSCAN command when scores are not included.- See Also:
- Constant Field Values
-
noScores
protected boolean noScores
When set to true, the command will not include scores in the results. This option is available from Valkey version 8.0.0 and above.
-
-
Constructor Detail
-
ZScanOptions
protected ZScanOptions(ZScanOptions.ZScanOptionsBuilder<?,?> 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 inZSCANcommands.- Overrides:
toGlideStringArgsin classBaseScanOptions- Returns:
- a GlideString array that holds the options and their arguments.
-
builder
public static ZScanOptions.ZScanOptionsBuilder<?,?> 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
-
-