Package io.quarkus.redis.datasource
Class SortArgs
java.lang.Object
io.quarkus.redis.datasource.SortArgs
- All Implemented Interfaces:
RedisCommandExtraArguments
-
Nested Class Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionalpha()
When the list contains string values and you want to sort them lexicographically, use the ALPHA modifier.UseASC
order (from small to large).Sets theBY
pattern.UseDESC
order (from large to small).Adds aGET
option.Sets theGET
option.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, wait
Methods inherited from interface io.quarkus.redis.datasource.RedisCommandExtraArguments
toArgs
-
Constructor Details
-
SortArgs
public SortArgs()
-
-
Method Details
-
ascending
UseASC
order (from small to large).- Returns:
- the current
SortArgs
-
descending
UseDESC
order (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 theBY
pattern.- Parameters:
by
- the by value- Returns:
- the current
SortArgs
-
get
Sets theGET
option. Retrieving external keys based on the elements in a list, set or sorted set can be done using the {code GET} options. TheGET
option 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 toGET
the element itself using the special pattern#
- Parameters:
get
- the get value- Returns:
- the current
SortArgs
-
get
Adds aGET
option. Retrieving external keys based on the elements in a list, set or sorted set can be done using the {code GET} options. TheGET
option 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 toGET
the element itself using the special pattern#
- Parameters:
get
- the get value- Returns:
- the current
SortArgs
-
toArgs
- Specified by:
toArgs
in interfaceRedisCommandExtraArguments
- Returns:
- the list of arguments.
-