Package org.redisson.api
Interface RLexSortedSet
-
- All Superinterfaces:
Collection<String>
,Iterable<String>
,RCollectionAsync<String>
,RExpirable
,RExpirableAsync
,RLexSortedSetAsync
,RObject
,RObjectAsync
,RSortedSet<String>
,Set<String>
,SortedSet<String>
- All Known Implementing Classes:
RedissonLexSortedSet
public interface RLexSortedSet extends RLexSortedSetAsync, RSortedSet<String>, RExpirable
Sorted set contained values of String type- Author:
- Nikita Koksharov
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description int
count(String fromElement, boolean fromInclusive, String toElement, boolean toInclusive)
int
countHead(String toElement, boolean toInclusive)
int
countTail(String fromElement, boolean fromInclusive)
String
pollFirst()
String
pollLast()
Collection<String>
range(int startIndex, int endIndex)
Collection<String>
range(String fromElement, boolean fromInclusive, String toElement, boolean toInclusive)
Collection<String>
range(String fromElement, boolean fromInclusive, String toElement, boolean toInclusive, int offset, int count)
Collection<String>
rangeHead(String toElement, boolean toInclusive)
Collection<String>
rangeHead(String toElement, boolean toInclusive, int offset, int count)
Collection<String>
rangeHeadReversed(String toElement, boolean toInclusive)
Collection<String>
rangeHeadReversed(String toElement, boolean toInclusive, int offset, int count)
Collection<String>
rangeReversed(String fromElement, boolean fromInclusive, String toElement, boolean toInclusive)
Collection<String>
rangeReversed(String fromElement, boolean fromInclusive, String toElement, boolean toInclusive, int offset, int count)
Collection<String>
rangeTail(String fromElement, boolean fromInclusive)
Collection<String>
rangeTail(String fromElement, boolean fromInclusive, int offset, int count)
Collection<String>
rangeTailReversed(String fromElement, boolean fromInclusive)
Collection<String>
rangeTailReversed(String fromElement, boolean fromInclusive, int offset, int count)
Integer
rank(String o)
int
removeRange(String fromElement, boolean fromInclusive, String toElement, boolean toInclusive)
int
removeRangeHead(String toElement, boolean toInclusive)
int
removeRangeTail(String fromElement, boolean fromInclusive)
Integer
revRank(String o)
Returns rank of value, with the scores ordered from high to low.-
Methods inherited from interface java.util.Collection
parallelStream, removeIf, stream, toArray
-
Methods inherited from interface org.redisson.api.RCollectionAsync
addAllAsync, addAsync, containsAllAsync, containsAsync, removeAllAsync, removeAsync, retainAllAsync, sizeAsync
-
Methods inherited from interface org.redisson.api.RExpirable
clearExpire, expire, expireAt, expireAt, remainTimeToLive
-
Methods inherited from interface org.redisson.api.RExpirableAsync
clearExpireAsync, expireAsync, expireAtAsync, expireAtAsync, remainTimeToLiveAsync
-
Methods inherited from interface org.redisson.api.RLexSortedSetAsync
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
-
Methods inherited from interface org.redisson.api.RObject
copy, delete, dump, getCodec, getName, isExists, migrate, move, rename, renamenx, restore, restore, restoreAndReplace, restoreAndReplace, sizeInMemory, touch, unlink
-
Methods inherited from interface org.redisson.api.RObjectAsync
copyAsync, deleteAsync, dumpAsync, isExistsAsync, migrateAsync, moveAsync, renameAsync, renamenxAsync, restoreAndReplaceAsync, restoreAndReplaceAsync, restoreAsync, restoreAsync, sizeInMemoryAsync, touchAsync, unlinkAsync
-
Methods inherited from interface org.redisson.api.RSortedSet
addAsync, mapReduce, readAll, readAllAsync, removeAsync, trySetComparator
-
Methods inherited from interface java.util.Set
add, addAll, clear, contains, containsAll, equals, hashCode, isEmpty, iterator, remove, removeAll, retainAll, size, toArray, toArray
-
Methods inherited from interface java.util.SortedSet
comparator, first, headSet, last, spliterator, subSet, tailSet
-
-
-
-
Method Detail
-
pollFirst
String pollFirst()
-
pollLast
String pollLast()
-
revRank
Integer revRank(String o)
Returns rank of value, with the scores ordered from high to low.- Parameters:
o
- - object- Returns:
- rank or
null
if value does not exist
-
removeRangeTail
int removeRangeTail(String fromElement, boolean fromInclusive)
-
removeRangeHead
int removeRangeHead(String toElement, boolean toInclusive)
-
removeRange
int removeRange(String fromElement, boolean fromInclusive, String toElement, boolean toInclusive)
-
countTail
int countTail(String fromElement, boolean fromInclusive)
-
countHead
int countHead(String toElement, boolean toInclusive)
-
rangeTail
Collection<String> rangeTail(String fromElement, boolean fromInclusive)
-
rangeHead
Collection<String> rangeHead(String toElement, boolean toInclusive)
-
range
Collection<String> range(String fromElement, boolean fromInclusive, String toElement, boolean toInclusive)
-
rangeTail
Collection<String> rangeTail(String fromElement, boolean fromInclusive, int offset, int count)
-
rangeHead
Collection<String> rangeHead(String toElement, boolean toInclusive, int offset, int count)
-
range
Collection<String> range(String fromElement, boolean fromInclusive, String toElement, boolean toInclusive, int offset, int count)
-
rangeTailReversed
Collection<String> rangeTailReversed(String fromElement, boolean fromInclusive)
-
rangeHeadReversed
Collection<String> rangeHeadReversed(String toElement, boolean toInclusive)
-
rangeReversed
Collection<String> rangeReversed(String fromElement, boolean fromInclusive, String toElement, boolean toInclusive)
-
rangeTailReversed
Collection<String> rangeTailReversed(String fromElement, boolean fromInclusive, int offset, int count)
-
rangeHeadReversed
Collection<String> rangeHeadReversed(String toElement, boolean toInclusive, int offset, int count)
-
rangeReversed
Collection<String> rangeReversed(String fromElement, boolean fromInclusive, String toElement, boolean toInclusive, int offset, int count)
-
range
Collection<String> range(int startIndex, int endIndex)
-
-