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 theLIMIT
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
Constructors Constructor Description Limit(long count)
Creates aSortArgs.Limit
object with just a count (offset is 0)Limit(long offset, long count)
Creates aSortArgs.Limit
object.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static SortArgs.Limit
noLimit()
static SortArgs.Limit
of(long offset, long count)
List<String>
toArgs()
-
-
-
Constructor Detail
-
Limit
public Limit(long offset, long count)
Creates aSortArgs.Limit
object.- Parameters:
offset
- the offset (0 based)count
- the limit count.
-
Limit
public Limit(long count)
Creates aSortArgs.Limit
object 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()
-
-