Package glide.api.models.commands
Class SortOptionsBinary
- java.lang.Object
-
- glide.api.models.commands.SortBaseOptions
-
- glide.api.models.commands.SortOptionsBinary
-
public class SortOptionsBinary extends SortBaseOptions
Optional arguments toGenericBaseCommands.sort(GlideString, SortOptionsBinary),GenericBaseCommands.sortReadOnly(GlideString, SortOptionsBinary), andGenericBaseCommands#sortStore(GlideString, String, SortOptionsBinary)
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classSortOptionsBinary.SortOptionsBinaryBuilder<C extends SortOptionsBinary,B extends SortOptionsBinary.SortOptionsBinaryBuilder<C,B>>-
Nested classes/interfaces inherited from class glide.api.models.commands.SortBaseOptions
SortBaseOptions.Limit, SortBaseOptions.OrderBy, SortBaseOptions.SortBaseOptionsBuilder<C extends SortBaseOptions,B extends SortBaseOptions.SortBaseOptionsBuilder<C,B>>
-
-
Field Summary
Fields Modifier and Type Field Description static GlideStringBY_COMMAND_GLIDE_STRINGBYsubcommand string to include in theSORTandSORT_ROcommands.static GlideStringGET_COMMAND_GLIDE_STRINGGETsubcommand string to include in theSORTandSORT_ROcommands.-
Fields inherited from class glide.api.models.commands.SortBaseOptions
ALPHA_COMMAND_STRING, LIMIT_COMMAND_STRING, STORE_COMMAND_STRING
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedSortOptionsBinary(SortOptionsBinary.SortOptionsBinaryBuilder<?,?> b)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static SortOptionsBinary.SortOptionsBinaryBuilder<?,?>builder()java.lang.String[]toArgs()Creates the arguments to be used inSORTandSORT_ROcommands.
-
-
-
Field Detail
-
BY_COMMAND_GLIDE_STRING
public static final GlideString BY_COMMAND_GLIDE_STRING
BYsubcommand string to include in theSORTandSORT_ROcommands. Supported in cluster mode since Valkey version 8.0 and above.
-
GET_COMMAND_GLIDE_STRING
public static final GlideString GET_COMMAND_GLIDE_STRING
GETsubcommand string to include in theSORTandSORT_ROcommands. Supported in cluster mode since Valkey version 8.0 and above.
-
-
Constructor Detail
-
SortOptionsBinary
protected SortOptionsBinary(SortOptionsBinary.SortOptionsBinaryBuilder<?,?> b)
-
-
Method Detail
-
toArgs
public java.lang.String[] toArgs()
Creates the arguments to be used inSORTandSORT_ROcommands.- Overrides:
toArgsin classSortBaseOptions- Returns:
- a String array that holds the sub commands and their arguments.
-
builder
public static SortOptionsBinary.SortOptionsBinaryBuilder<?,?> builder()
-
-