Interface SortQuery<K>
public interface SortQuery<K>
High-level abstraction over a Redis SORT (generified equivalent of
SortParameters). To be used with
RedisTemplate (just as SortParameters is used by RedisConnection).- Author:
- Costin Leau, Mark Paluch
-
Method Summary
Modifier and TypeMethodDescriptiongetBy()Returns the pattern of the external key used for sorting.Returns the external key(s) whose values are returned by the sort.getKey()Return the target key for sorting.getLimit()Returns the sorting limit (range or pagination).getOrder()Returns the sorting order.Indicates if the sorting is numeric (default) or alphabetical (lexicographical).
-
Method Details
-
getKey
-
getOrder
@Nullable SortParameters.Order getOrder()Returns the sorting order. Can be null if nothing is specified.- Returns:
- sorting order
-
isAlphabetic
-
getLimit
@Nullable SortParameters.Range getLimit()Returns the sorting limit (range or pagination). Can be null if nothing is specified.- Returns:
- sorting limit/range
-
getBy
-
getGetPattern
-