Package io.quarkus.redis.datasource
Class SortArgs.Limit
java.lang.Object
io.quarkus.redis.datasource.SortArgs.Limit
- Enclosing class:
- SortArgs
Represent a limit.
From the Redis SORT command:
The number of returned elements can be limited using the
LIMIT modifier. This modifier takes the
offset argument, specifying the number of elements to skip and the count argument, specifying the number of
elements to return from starting at offset. The following example will return 10 elements of the sorted version
of mylist, starting at element 0 (offset is zero-based): SORT mylist LIMIT 0 10-
Constructor Summary
ConstructorsConstructorDescriptionLimit(long count) Creates aSortArgs.Limitobject with just a count (offset is 0)Limit(long offset, long count) Creates aSortArgs.Limitobject. -
Method Summary
Modifier and TypeMethodDescriptionstatic SortArgs.LimitnoLimit()static SortArgs.Limitof(long offset, long count) toArgs()
-
Constructor Details
-
Limit
public Limit(long offset, long count) Creates aSortArgs.Limitobject.- Parameters:
offset- the offset (0 based)count- the limit count.
-
Limit
public Limit(long count) Creates aSortArgs.Limitobject with just a count (offset is 0)- Parameters:
count- the limit count.
-
-
Method Details
-
of
-
noLimit
-
toArgs
-