public interface RLexSortedSet extends RLexSortedSetAsync, RSortedSet<String>, RExpirable
Modifier and Type | Method and Description |
---|---|
int |
count(String fromElement,
boolean fromInclusive,
String toElement,
boolean toInclusive)
Returns the number of elements between
fromElement and toElement . |
int |
countHead(String toElement,
boolean toInclusive)
Returns the number of head values ending with
toElement . |
int |
countTail(String fromElement,
boolean fromInclusive)
Returns the number of tail values starting with
fromElement . |
String |
pollFirst()
Removes and returns the head element or
null if this sorted set is empty. |
String |
pollLast()
Removes and returns the tail element or
null if this sorted set is empty. |
Collection<String> |
range(int startIndex,
int endIndex)
Returns values by rank range.
|
Collection<String> |
range(String fromElement,
boolean fromInclusive,
String toElement,
boolean toInclusive)
Returns values range starting with
fromElement and ending with toElement . |
Collection<String> |
range(String fromElement,
boolean fromInclusive,
String toElement,
boolean toInclusive,
int offset,
int count)
Returns values range starting with
fromElement and ending with toElement . |
Collection<String> |
rangeHead(String toElement,
boolean toInclusive)
Returns head values range ending with
toElement . |
Collection<String> |
rangeHead(String toElement,
boolean toInclusive,
int offset,
int count)
Returns head values range ending with
toElement . |
Collection<String> |
rangeHeadReversed(String toElement,
boolean toInclusive)
Returns head values range in reverse order ending with
toElement . |
Collection<String> |
rangeHeadReversed(String toElement,
boolean toInclusive,
int offset,
int count)
Returns head values range in reverse order ending with
toElement . |
Collection<String> |
rangeReversed(String fromElement,
boolean fromInclusive,
String toElement,
boolean toInclusive)
Returns values range in reverse order starting with
fromElement and ending with toElement . |
Collection<String> |
rangeReversed(String fromElement,
boolean fromInclusive,
String toElement,
boolean toInclusive,
int offset,
int count)
Returns values range in reverse order starting with
fromElement and ending with toElement . |
Collection<String> |
rangeTail(String fromElement,
boolean fromInclusive)
Returns tail values range starting with
fromElement . |
Collection<String> |
rangeTail(String fromElement,
boolean fromInclusive,
int offset,
int count)
Returns tail values range starting with
fromElement . |
Collection<String> |
rangeTailReversed(String fromElement,
boolean fromInclusive)
Returns tail values range in reverse order starting with
fromElement . |
Collection<String> |
rangeTailReversed(String fromElement,
boolean fromInclusive,
int offset,
int count)
Returns tail values range in reverse order starting with
fromElement . |
Integer |
rank(String o)
Returns rank of the element
|
int |
removeRange(String fromElement,
boolean fromInclusive,
String toElement,
boolean toInclusive)
Removes values range starting with
fromElement and ending with toElement . |
int |
removeRangeHead(String toElement,
boolean toInclusive)
Removes head values range ending with
toElement . |
int |
removeRangeTail(String fromElement,
boolean fromInclusive)
Removes tail values range starting with
fromElement . |
Integer |
revRank(String o)
Returns rank of value, with the scores ordered from high to low.
|
countAsync, countHeadAsync, countTailAsync, firstAsync, lastAsync, pollFirstAsync, pollLastAsync, rangeAsync, rangeAsync, rangeAsync, rangeHeadAsync, rangeHeadAsync, rangeHeadReversedAsync, rangeHeadReversedAsync, rangeReversedAsync, rangeReversedAsync, rangeTailAsync, rangeTailAsync, rangeTailReversedAsync, rangeTailReversedAsync, rankAsync, readAllAsync, removeRangeAsync, removeRangeHeadAsync, removeRangeTailAsync, revRankAsync
addAllAsync, addAsync, containsAllAsync, containsAsync, removeAllAsync, removeAsync, retainAllAsync, sizeAsync
clearExpireAsync, expireAsync, expireAtAsync, expireAtAsync, remainTimeToLiveAsync
copyAsync, deleteAsync, dumpAsync, isExistsAsync, migrateAsync, moveAsync, renameAsync, renamenxAsync, restoreAndReplaceAsync, restoreAndReplaceAsync, restoreAsync, restoreAsync, sizeInMemoryAsync, touchAsync, unlinkAsync
addAsync, mapReduce, readAll, readAllAsync, removeAsync, trySetComparator
comparator, first, headSet, last, spliterator, subSet, tailSet
add, addAll, clear, contains, containsAll, equals, hashCode, isEmpty, iterator, remove, removeAll, retainAll, size, toArray, toArray
parallelStream, removeIf, stream
clearExpire, expire, expireAt, expireAt, remainTimeToLive
String pollFirst()
null
if this sorted set is empty.null
if this sorted set is emptyString pollLast()
null
if this sorted set is empty.null
if this sorted set is emptyInteger revRank(String o)
o
- - objectnull
if value does not existint removeRangeTail(String fromElement, boolean fromInclusive)
fromElement
.fromElement
- - start elementfromInclusive
- - start element inclusiveint removeRangeHead(String toElement, boolean toInclusive)
toElement
.toElement
- - end elementtoInclusive
- - end element inclusiveint removeRange(String fromElement, boolean fromInclusive, String toElement, boolean toInclusive)
fromElement
and ending with toElement
.fromElement
- - start elementfromInclusive
- - start element inclusivetoElement
- - end elementtoInclusive
- - end element inclusiveint countTail(String fromElement, boolean fromInclusive)
fromElement
.fromElement
- - start elementfromInclusive
- - start element inclusiveint countHead(String toElement, boolean toInclusive)
toElement
.toElement
- - end elementtoInclusive
- - end element inclusiveCollection<String> rangeTail(String fromElement, boolean fromInclusive)
fromElement
.fromElement
- - start elementfromInclusive
- - start element inclusiveCollection<String> rangeHead(String toElement, boolean toInclusive)
toElement
.toElement
- - end elementtoInclusive
- - end element inclusiveCollection<String> range(String fromElement, boolean fromInclusive, String toElement, boolean toInclusive)
fromElement
and ending with toElement
.fromElement
- - start elementfromInclusive
- - start element inclusivetoElement
- - end elementtoInclusive
- - end element inclusiveCollection<String> rangeTail(String fromElement, boolean fromInclusive, int offset, int count)
fromElement
.
Returned collection limited by count
and starts with offset
.fromElement
- - start elementfromInclusive
- - start element inclusiveoffset
- - offset of result collectioncount
- - amount of result collectionCollection<String> rangeHead(String toElement, boolean toInclusive, int offset, int count)
toElement
.
Returned collection limited by count
and starts with offset
.toElement
- - end elementtoInclusive
- - end element inclusiveoffset
- - offset of result collectioncount
- - amount of result collectionCollection<String> range(String fromElement, boolean fromInclusive, String toElement, boolean toInclusive, int offset, int count)
fromElement
and ending with toElement
.
Returned collection limited by count
and starts with offset
.fromElement
- - start elementfromInclusive
- - start element inclusivetoElement
- - end elementtoInclusive
- - end element inclusiveCollection<String> rangeTailReversed(String fromElement, boolean fromInclusive)
fromElement
.fromElement
- - start elementfromInclusive
- - start element inclusiveCollection<String> rangeHeadReversed(String toElement, boolean toInclusive)
toElement
.toElement
- - end elementtoInclusive
- - end element inclusiveCollection<String> rangeReversed(String fromElement, boolean fromInclusive, String toElement, boolean toInclusive)
fromElement
and ending with toElement
.fromElement
- - start elementfromInclusive
- - start element inclusivetoElement
- - end elementtoInclusive
- - end element inclusiveCollection<String> rangeTailReversed(String fromElement, boolean fromInclusive, int offset, int count)
fromElement
.
Returned collection limited by count
and starts with offset
.fromElement
- - start elementfromInclusive
- - start element inclusiveoffset
- - offset of result collectioncount
- - amount of result collectionCollection<String> rangeHeadReversed(String toElement, boolean toInclusive, int offset, int count)
toElement
.
Returned collection limited by count
and starts with offset
.toElement
- - end elementtoInclusive
- - end element inclusiveoffset
- - offset of result collectioncount
- - amount of result collectionCollection<String> rangeReversed(String fromElement, boolean fromInclusive, String toElement, boolean toInclusive, int offset, int count)
fromElement
and ending with toElement
.
Returned collection limited by count
and starts with offset
.fromElement
- - start elementfromInclusive
- - start element inclusivetoElement
- - end elementtoInclusive
- - end element inclusiveint count(String fromElement, boolean fromInclusive, String toElement, boolean toInclusive)
fromElement
and toElement
.fromElement
- - start elementfromInclusive
- - start element inclusivetoElement
- - end elementtoInclusive
- - end element inclusiveInteger rank(String o)
o
- - element to ranknull
if element does not existCollection<String> range(int startIndex, int endIndex)
-1
means the highest score, -2
means the second highest score.startIndex
- - start indexendIndex
- - end indexCopyright © 2014–2019 The Redisson Project. All rights reserved.