Package glide.api.models.commands
Class SortOptions
- java.lang.Object
-
- glide.api.models.commands.SortBaseOptions
-
- glide.api.models.commands.SortOptions
-
public class SortOptions extends SortBaseOptions
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classSortOptions.SortOptionsBuilder<C extends SortOptions,B extends SortOptions.SortOptionsBuilder<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 java.lang.StringBY_COMMAND_STRINGBYsubcommand string to include in theSORTandSORT_ROcommands.static java.lang.StringGET_COMMAND_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 protectedSortOptions(SortOptions.SortOptionsBuilder<?,?> b)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static SortOptions.SortOptionsBuilder<?,?>builder()java.lang.String[]toArgs()Creates the arguments to be used inSORTandSORT_ROcommands.
-
-
-
Field Detail
-
BY_COMMAND_STRING
public static final java.lang.String BY_COMMAND_STRING
BYsubcommand string to include in theSORTandSORT_ROcommands. Supported in cluster mode since Valkey version 8.0 and above.- See Also:
- Constant Field Values
-
GET_COMMAND_STRING
public static final java.lang.String GET_COMMAND_STRING
GETsubcommand string to include in theSORTandSORT_ROcommands. Supported in cluster mode since Valkey version 8.0 and above.- See Also:
- Constant Field Values
-
-
Constructor Detail
-
SortOptions
protected SortOptions(SortOptions.SortOptionsBuilder<?,?> 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 SortOptions.SortOptionsBuilder<?,?> builder()
-
-