Package io.quarkus.redis.datasource
Class SortArgs
java.lang.Object
io.quarkus.redis.datasource.SortArgs
- All Implemented Interfaces:
RedisCommandExtraArguments
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionalpha()When the list contains string values and you want to sort them lexicographically, use the ALPHA modifier.UseASCorder (from small to large).Sets theBYpattern.UseDESCorder (from large to small).Adds aGEToption.Sets theGEToption.limit(long count) Sets the limit option with only the number of elements.limit(long offset, long count) Sets the limit option using the offset and count.limit(SortArgs.Limit limit) Sets the limit option.toArgs()Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.quarkus.redis.datasource.RedisCommandExtraArguments
toArgs
-
Constructor Details
-
SortArgs
public SortArgs()
-
-
Method Details
-
ascending
UseASCorder (from small to large).- Returns:
- the current
SortArgs
-
descending
UseDESCorder (from large to small).- Returns:
- the current
SortArgs
-
limit
Sets the limit option.- Parameters:
limit- the limit value- Returns:
- the current
SortArgs
-
limit
Sets the limit option using the offset and count.- Parameters:
offset- the offset (zero-based)count- the number of element- Returns:
- the current
SortArgs
-
limit
Sets the limit option with only the number of elements.- Parameters:
count- the number of elements- Returns:
- the current
SortArgs
-
alpha
When the list contains string values and you want to sort them lexicographically, use the ALPHA modifier.- Returns:
- the current
SortArgs
-
by
Sets theBYpattern.- Parameters:
by- the by value- Returns:
- the current
SortArgs
-
get
Sets theGEToption. Retrieving external keys based on the elements in a list, set or sorted set can be done using the {code GET} options. TheGEToption can be used multiple times in order to get more keys for every element of the original list, set or sorted set. It is also possible toGETthe element itself using the special pattern#- Parameters:
get- the get value- Returns:
- the current
SortArgs
-
get
Adds aGEToption. Retrieving external keys based on the elements in a list, set or sorted set can be done using the {code GET} options. TheGEToption can be used multiple times in order to get more keys for every element of the original list, set or sorted set. It is also possible toGETthe element itself using the special pattern#- Parameters:
get- the get value- Returns:
- the current
SortArgs
-
toArgs
- Specified by:
toArgsin interfaceRedisCommandExtraArguments- Returns:
- the list of arguments.
-