Package org.redisson.api
Interface RSortable<V>
-
- Type Parameters:
V
- object type
- All Superinterfaces:
RSortableAsync<V>
- All Known Subinterfaces:
RGeo<V>
,RList<V>
,RScoredSortedSet<V>
,RSet<V>
- All Known Implementing Classes:
RedissonBlockingDeque
,RedissonBlockingQueue
,RedissonBoundedBlockingQueue
,RedissonDeque
,RedissonGeo
,RedissonLexSortedSet
,RedissonList
,RedissonListMultimapValues
,RedissonPriorityBlockingDeque
,RedissonPriorityBlockingQueue
,RedissonPriorityDeque
,RedissonPriorityQueue
,RedissonQueue
,RedissonRingBuffer
,RedissonScoredSortedSet
,RedissonSet
,RedissonSetMultimapValues
,RedissonSubList
,RedissonTransactionalSet
public interface RSortable<V> extends RSortableAsync<V>
- Author:
- Nikita Koksharov
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description <T> Collection<T>
readSort(String byPattern, List<String> getPatterns, SortOrder order)
Read data in sorted view<T> Collection<T>
readSort(String byPattern, List<String> getPatterns, SortOrder order, int offset, int count)
Read data in sorted viewV
readSort(String byPattern, SortOrder order)
Read data in sorted viewV
readSort(String byPattern, SortOrder order, int offset, int count)
Read data in sorted viewV
readSort(SortOrder order)
Read data in sorted viewV
readSort(SortOrder order, int offset, int count)
Read data in sorted view<T> Collection<T>
readSortAlpha(String byPattern, List<String> getPatterns, SortOrder order)
Read data in sorted view lexicographically<T> Collection<T>
readSortAlpha(String byPattern, List<String> getPatterns, SortOrder order, int offset, int count)
Read data in sorted view lexicographicallyV
readSortAlpha(String byPattern, SortOrder order)
Read data in sorted view lexicographicallyV
readSortAlpha(String byPattern, SortOrder order, int offset, int count)
Read data in sorted view lexicographicallyV
readSortAlpha(SortOrder order)
Read data in sorted view lexicographicallyV
readSortAlpha(SortOrder order, int offset, int count)
Read data in sorted view lexicographicallyint
sortTo(String destName, String byPattern, List<String> getPatterns, SortOrder order)
Sort data and store todestName
listint
sortTo(String destName, String byPattern, List<String> getPatterns, SortOrder order, int offset, int count)
Sort data and store todestName
listint
sortTo(String destName, String byPattern, SortOrder order)
Sort data and store todestName
listint
sortTo(String destName, String byPattern, SortOrder order, int offset, int count)
Sort data and store todestName
listint
sortTo(String destName, SortOrder order)
Sort data and store todestName
listint
sortTo(String destName, SortOrder order, int offset, int count)
Sort data and store todestName
list-
Methods inherited from interface org.redisson.api.RSortableAsync
readSortAlphaAsync, readSortAlphaAsync, readSortAlphaAsync, readSortAlphaAsync, readSortAlphaAsync, readSortAlphaAsync, readSortAsync, readSortAsync, readSortAsync, readSortAsync, readSortAsync, readSortAsync, sortToAsync, sortToAsync, sortToAsync, sortToAsync, sortToAsync, sortToAsync
-
-
-
-
Method Detail
-
readSort
V readSort(SortOrder order)
Read data in sorted view- Parameters:
order
- for sorted data- Returns:
- sorted collection
-
readSort
V readSort(SortOrder order, int offset, int count)
Read data in sorted view- Parameters:
order
- for sorted dataoffset
- of sorted datacount
- of sorted data- Returns:
- sorted collection
-
readSort
V readSort(String byPattern, SortOrder order)
Read data in sorted view- Parameters:
byPattern
- that is used to generate the keys that are used for sortingorder
- for sorted data- Returns:
- sorted collection
-
readSort
V readSort(String byPattern, SortOrder order, int offset, int count)
Read data in sorted view- Parameters:
byPattern
- that is used to generate the keys that are used for sortingorder
- for sorted dataoffset
- of sorted datacount
- of sorted data- Returns:
- sorted collection
-
readSort
<T> Collection<T> readSort(String byPattern, List<String> getPatterns, SortOrder order)
Read data in sorted view- Type Parameters:
T
- object type- Parameters:
byPattern
- that is used to generate the keys that are used for sortinggetPatterns
- that is used to load values by keys in sorted vieworder
- for sorted data- Returns:
- sorted collection
-
readSort
<T> Collection<T> readSort(String byPattern, List<String> getPatterns, SortOrder order, int offset, int count)
Read data in sorted view- Type Parameters:
T
- object type- Parameters:
byPattern
- that is used to generate the keys that are used for sortinggetPatterns
- that is used to load values by keys in sorted vieworder
- for sorted dataoffset
- of sorted datacount
- of sorted data- Returns:
- sorted collection
-
readSortAlpha
V readSortAlpha(SortOrder order)
Read data in sorted view lexicographically- Parameters:
order
- for sorted data- Returns:
- sorted collection lexicographically
-
readSortAlpha
V readSortAlpha(SortOrder order, int offset, int count)
Read data in sorted view lexicographically- Parameters:
order
- for sorted dataoffset
- of sorted datacount
- of sorted data- Returns:
- sorted collection lexicographically
-
readSortAlpha
V readSortAlpha(String byPattern, SortOrder order)
Read data in sorted view lexicographically- Parameters:
byPattern
- that is used to generate the keys that are used for sortingorder
- for sorted data- Returns:
- sorted collection lexicographically
-
readSortAlpha
V readSortAlpha(String byPattern, SortOrder order, int offset, int count)
Read data in sorted view lexicographically- Parameters:
byPattern
- that is used to generate the keys that are used for sortingorder
- for sorted dataoffset
- of sorted datacount
- of sorted data- Returns:
- sorted collection lexicographically
-
readSortAlpha
<T> Collection<T> readSortAlpha(String byPattern, List<String> getPatterns, SortOrder order)
Read data in sorted view lexicographically- Type Parameters:
T
- object type- Parameters:
byPattern
- that is used to generate the keys that are used for sortinggetPatterns
- that is used to load values by keys in sorted vieworder
- for sorted data- Returns:
- sorted collection lexicographically
-
readSortAlpha
<T> Collection<T> readSortAlpha(String byPattern, List<String> getPatterns, SortOrder order, int offset, int count)
Read data in sorted view lexicographically- Type Parameters:
T
- object type- Parameters:
byPattern
- that is used to generate the keys that are used for sortinggetPatterns
- that is used to load values by keys in sorted vieworder
- for sorted dataoffset
- of sorted datacount
- of sorted data- Returns:
- sorted collection lexicographically
-
sortTo
int sortTo(String destName, SortOrder order)
Sort data and store todestName
list- Parameters:
destName
- list object destinationorder
- for sorted data- Returns:
- length of sorted data
-
sortTo
int sortTo(String destName, SortOrder order, int offset, int count)
Sort data and store todestName
list- Parameters:
destName
- list object destinationorder
- for sorted dataoffset
- of sorted datacount
- of sorted data- Returns:
- length of sorted data
-
sortTo
int sortTo(String destName, String byPattern, SortOrder order)
Sort data and store todestName
list- Parameters:
destName
- list object destinationbyPattern
- that is used to generate the keys that are used for sortingorder
- for sorted data- Returns:
- length of sorted data
-
sortTo
int sortTo(String destName, String byPattern, SortOrder order, int offset, int count)
Sort data and store todestName
list- Parameters:
destName
- list object destinationbyPattern
- that is used to generate the keys that are used for sortingorder
- for sorted dataoffset
- of sorted datacount
- of sorted data- Returns:
- length of sorted data
-
sortTo
int sortTo(String destName, String byPattern, List<String> getPatterns, SortOrder order)
Sort data and store todestName
list- Parameters:
destName
- list object destinationbyPattern
- that is used to generate the keys that are used for sortinggetPatterns
- that is used to load values by keys in sorted vieworder
- for sorted data- Returns:
- length of sorted data
-
sortTo
int sortTo(String destName, String byPattern, List<String> getPatterns, SortOrder order, int offset, int count)
Sort data and store todestName
list- Parameters:
destName
- list object destinationbyPattern
- that is used to generate the keys that are used for sortinggetPatterns
- that is used to load values by keys in sorted vieworder
- for sorted dataoffset
- of sorted datacount
- of sorted data- Returns:
- length of sorted data
-
-