Class ZRangeArgs
- java.lang.Object
-
- io.quarkus.redis.datasource.sortedset.ZRangeArgs
-
- All Implemented Interfaces:
RedisCommandExtraArguments
public class ZRangeArgs extends Object implements RedisCommandExtraArguments
-
-
Constructor Summary
Constructors Constructor Description ZRangeArgs()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
isReverse()
ZRangeArgs
limit(long offset, int count)
The LIMIT argument can be used to obtain a sub-range from the matching elements.ZRangeArgs
rev()
The REV argument reverses the ordering, so elements are ordered from highest to lowest score, and score ties are resolved by reverse lexicographical ordering.List<String>
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
-
-
-
-
Method Detail
-
rev
public ZRangeArgs rev()
The REV argument reverses the ordering, so elements are ordered from highest to lowest score, and score ties are resolved by reverse lexicographical ordering.- Returns:
- the current
ZRangeArgs
-
limit
public ZRangeArgs limit(long offset, int count)
The LIMIT argument can be used to obtain a sub-range from the matching elements. A negative @{code count} returns all elements from theoffset
.- Parameters:
offset
- the offset valuecount
- the count value- Returns:
- the current
ZRangeArgs
-
toArgs
public List<String> toArgs()
- Specified by:
toArgs
in interfaceRedisCommandExtraArguments
- Returns:
- the list of arguments, encoded as a list of String.
-
isReverse
public boolean isReverse()
-
-