Package io.quarkus.redis.datasource
Class SortArgs.Limit
- java.lang.Object
-
- io.quarkus.redis.datasource.SortArgs.Limit
-
- Enclosing class:
- SortArgs
public static class SortArgs.Limit extends Object
Represent a limit. From the Redis SORT command: The number of returned elements can be limited using theLIMITmodifier. 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
Constructors Constructor Description Limit(long count)Creates aSortArgs.Limitobject with just a count (offset is 0)Limit(long offset, long count)Creates aSortArgs.Limitobject.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static SortArgs.LimitnoLimit()static SortArgs.Limitof(long offset, long count)List<String>toArgs()
-
-
-
Constructor Detail
-
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 Detail
-
of
public static SortArgs.Limit of(long offset, long count)
-
noLimit
public static SortArgs.Limit noLimit()
-
-