Package org.redisson.api
Interface RLexSortedSetRx
- All Superinterfaces:
RCollectionRx<String>
,RExpirableRx
,RObjectRx
,RScoredSortedSetRx<String>
,RSortableRx<Set<String>>
RxJava2 interface for sorted set contained values of String type.
- Author:
- Nikita Koksharov
-
Method Summary
Modifier and TypeMethodDescriptionio.reactivex.rxjava3.core.Single<Integer>
Returns the number of elements betweenfromElement
andtoElement
.io.reactivex.rxjava3.core.Single<Integer>
Returns the number of head values ending withtoElement
.io.reactivex.rxjava3.core.Single<Integer>
Returns the number of tail values starting withfromElement
.io.reactivex.rxjava3.core.Single<Collection<String>>
Returns values range starting withfromElement
and ending withtoElement
.io.reactivex.rxjava3.core.Single<Collection<String>>
range
(String fromElement, boolean fromInclusive, String toElement, boolean toInclusive, int offset, int count) Returns values range starting withfromElement
and ending withtoElement
.io.reactivex.rxjava3.core.Single<Collection<String>>
Returns head values range ending withtoElement
.io.reactivex.rxjava3.core.Single<Collection<String>>
Returns head values range ending withtoElement
.io.reactivex.rxjava3.core.Single<Collection<String>>
Returns tail values range starting withfromElement
.io.reactivex.rxjava3.core.Single<Collection<String>>
Returns tail values range starting withfromElement
.io.reactivex.rxjava3.core.Single<Integer>
removeRange
(String fromElement, boolean fromInclusive, String toElement, boolean toInclusive) Removes values range starting withfromElement
and ending withtoElement
.io.reactivex.rxjava3.core.Single<Integer>
removeRangeHead
(String toElement, boolean toInclusive) Removes head values range ending withtoElement
.io.reactivex.rxjava3.core.Single<Integer>
removeRangeTail
(String fromElement, boolean fromInclusive) Removes tail values range starting withfromElement
.Methods inherited from interface org.redisson.api.RCollectionRx
add, addAll, addAll, contains, containsAll, iterator, remove, removeAll, retainAll, size
Methods inherited from interface org.redisson.api.RExpirableRx
clearExpire, expire, expire, expire, expireAt, expireAt, expireIfGreater, expireIfGreater, expireIfLess, expireIfLess, expireIfNotSet, expireIfNotSet, expireIfSet, expireIfSet, getExpireTime, remainTimeToLive
Methods inherited from interface org.redisson.api.RObjectRx
addListener, copy, delete, dump, getCodec, getIdleTime, getName, isExists, migrate, move, removeListener, rename, renamenx, restore, restore, restoreAndReplace, restoreAndReplace, sizeInMemory, touch, unlink
Methods inherited from interface org.redisson.api.RScoredSortedSetRx
add, addAll, addAllIfAbsent, addAllIfExist, addAllIfGreater, addAllIfLess, addAndGetRank, addAndGetRevRank, addAndGetRevRank, addIfAbsent, addIfExists, addIfGreater, addIfLess, addScore, addScoreAndGetRank, addScoreAndGetRevRank, contains, containsAll, count, countIntersection, countIntersection, diff, entryRange, entryRange, entryRange, entryRangeReversed, entryRangeReversed, entryRangeReversed, first, firstScore, getScore, getScore, intersection, intersection, intersection, intersection, iterator, iterator, iterator, iterator, last, lastScore, pollFirst, pollFirst, pollFirst, pollFirst, pollFirstEntriesFromAny, pollFirstEntriesFromAny, pollFirstFromAny, pollFirstFromAny, pollFirstFromAny, pollLast, pollLast, pollLast, pollLast, pollLastEntriesFromAny, pollLastEntriesFromAny, pollLastFromAny, pollLastFromAny, pollLastFromAny, random, random, randomEntries, rangeTo, rangeTo, rangeTo, rank, readAll, readDiff, readIntersection, readIntersection, readIntersection, readIntersection, readUnion, readUnion, readUnion, readUnion, remove, removeAll, removeRangeByRank, removeRangeByScore, replace, retainAll, revRangeTo, revRangeTo, revRangeTo, revRank, revRank, size, takeFirst, takeFirstElements, takeLast, takeLastElements, tryAdd, union, union, union, union, valueRange, valueRange, valueRange, valueRangeReversed, valueRangeReversed, valueRangeReversed
Methods inherited from interface org.redisson.api.RSortableRx
readSorted, readSorted, readSorted, readSorted, readSorted, readSorted, sortTo, sortTo, sortTo, sortTo, sortTo, sortTo
-
Method Details
-
removeRange
io.reactivex.rxjava3.core.Single<Integer> removeRange(String fromElement, boolean fromInclusive, String toElement, boolean toInclusive) Removes values range starting withfromElement
and ending withtoElement
.- Parameters:
fromElement
- - start elementfromInclusive
- - start element inclusivetoElement
- - end elementtoInclusive
- - end element inclusive- Returns:
- number of elements removed
-
removeRangeTail
io.reactivex.rxjava3.core.Single<Integer> removeRangeTail(String fromElement, boolean fromInclusive) Removes tail values range starting withfromElement
.- Parameters:
fromElement
- - start elementfromInclusive
- - start element inclusive- Returns:
- number of elements removed
-
removeRangeHead
Removes head values range ending withtoElement
.- Parameters:
toElement
- - end elementtoInclusive
- - end element inclusive- Returns:
- number of elements removed
-
countTail
Returns the number of tail values starting withfromElement
.- Parameters:
fromElement
- - start elementfromInclusive
- - start element inclusive- Returns:
- number of elements
-
countHead
Returns the number of head values ending withtoElement
.- Parameters:
toElement
- - end elementtoInclusive
- - end element inclusive- Returns:
- number of elements
-
rangeTail
io.reactivex.rxjava3.core.Single<Collection<String>> rangeTail(String fromElement, boolean fromInclusive) Returns tail values range starting withfromElement
.- Parameters:
fromElement
- - start elementfromInclusive
- - start element inclusive- Returns:
- collection of elements
-
rangeHead
io.reactivex.rxjava3.core.Single<Collection<String>> rangeHead(String toElement, boolean toInclusive) Returns head values range ending withtoElement
.- Parameters:
toElement
- - end elementtoInclusive
- - end element inclusive- Returns:
- collection of elements
-
range
io.reactivex.rxjava3.core.Single<Collection<String>> range(String fromElement, boolean fromInclusive, String toElement, boolean toInclusive) Returns values range starting withfromElement
and ending withtoElement
.- Parameters:
fromElement
- - start elementfromInclusive
- - start element inclusivetoElement
- - end elementtoInclusive
- - end element inclusive- Returns:
- collection of elements
-
rangeTail
io.reactivex.rxjava3.core.Single<Collection<String>> rangeTail(String fromElement, boolean fromInclusive, int offset, int count) Returns tail values range starting withfromElement
. Returned collection limited bycount
and starts withoffset
.- Parameters:
fromElement
- - start elementfromInclusive
- - start element inclusiveoffset
- - offset of result collectioncount
- - amount of result collection- Returns:
- collection of elements
-
rangeHead
io.reactivex.rxjava3.core.Single<Collection<String>> rangeHead(String toElement, boolean toInclusive, int offset, int count) Returns head values range ending withtoElement
. Returned collection limited bycount
and starts withoffset
.- Parameters:
toElement
- - end elementtoInclusive
- - end element inclusiveoffset
- - offset of result collectioncount
- - amount of result collection- Returns:
- collection of elements
-
range
io.reactivex.rxjava3.core.Single<Collection<String>> range(String fromElement, boolean fromInclusive, String toElement, boolean toInclusive, int offset, int count) Returns values range starting withfromElement
and ending withtoElement
. Returned collection limited bycount
and starts withoffset
.- Parameters:
fromElement
- - start elementfromInclusive
- - start element inclusivetoElement
- - end elementtoInclusive
- - end element inclusiveoffset
- - offset of result collectioncount
- - amount of result collection- Returns:
- collection of elements
-
count
io.reactivex.rxjava3.core.Single<Integer> count(String fromElement, boolean fromInclusive, String toElement, boolean toInclusive) Returns the number of elements betweenfromElement
andtoElement
.- Parameters:
fromElement
- - start elementfromInclusive
- - start element inclusivetoElement
- - end elementtoInclusive
- - end element inclusive- Returns:
- number of elements
-