V - value typepublic interface RScoredSortedSetRx<V> extends RExpirableRx, RSortableRx<Set<V>>
| Modifier and Type | Method and Description |
|---|---|
io.reactivex.Flowable<Boolean> |
add(double score,
V object)
Adds element to this set, overrides previous score if it has been already added.
|
io.reactivex.Flowable<Long> |
addAll(Map<V,Double> objects) |
io.reactivex.Flowable<Integer> |
addAndGetRank(double score,
V object)
Adds element to this set, overrides previous score if it has been already added.
|
io.reactivex.Flowable<Integer> |
addAndGetRevRank(double score,
V object)
Adds element to this set, overrides previous score if it has been already added.
|
io.reactivex.Flowable<Double> |
addScore(V object,
Number value) |
io.reactivex.Flowable<Integer> |
addScoreAndGetRank(V object,
Number value)
Adds score to element and returns its rank
|
io.reactivex.Flowable<Integer> |
addScoreAndGetRevRank(V object,
Number value)
Adds score to element and returns its reverse rank
|
io.reactivex.Flowable<Boolean> |
contains(V o) |
io.reactivex.Flowable<Boolean> |
containsAll(Collection<?> c) |
io.reactivex.Flowable<Long> |
count(double startScore,
boolean startScoreInclusive,
double endScore,
boolean endScoreInclusive)
Returns the number of elements with a score between
startScore and endScore. |
io.reactivex.Flowable<Collection<ScoredEntry<V>>> |
entryRange(double startScore,
boolean startScoreInclusive,
double endScore,
boolean endScoreInclusive) |
io.reactivex.Flowable<Collection<ScoredEntry<V>>> |
entryRange(double startScore,
boolean startScoreInclusive,
double endScore,
boolean endScoreInclusive,
int offset,
int count) |
io.reactivex.Flowable<Collection<ScoredEntry<V>>> |
entryRange(int startIndex,
int endIndex) |
io.reactivex.Flowable<Collection<ScoredEntry<V>>> |
entryRangeReversed(double startScore,
boolean startScoreInclusive,
double endScore,
boolean endScoreInclusive) |
io.reactivex.Flowable<Collection<ScoredEntry<V>>> |
entryRangeReversed(double startScore,
boolean startScoreInclusive,
double endScore,
boolean endScoreInclusive,
int offset,
int count) |
io.reactivex.Flowable<Collection<ScoredEntry<V>>> |
entryRangeReversed(int startIndex,
int endIndex) |
io.reactivex.Flowable<V> |
first()
Returns the head element or
null if this sorted set is empty. |
io.reactivex.Flowable<Double> |
firstScore()
Returns score of the head element or returns
null if this sorted set is empty. |
io.reactivex.Flowable<Double> |
getScore(V o) |
io.reactivex.Flowable<Integer> |
intersection(Map<String,Double> nameWithWeight)
Intersect provided ScoredSortedSets mapped to weight multiplier
and store result to current ScoredSortedSet
|
io.reactivex.Flowable<Integer> |
intersection(RScoredSortedSet.Aggregate aggregate,
Map<String,Double> nameWithWeight)
Intersect provided ScoredSortedSets mapped to weight multiplier
with defined aggregation method
and store result to current ScoredSortedSet
|
io.reactivex.Flowable<Integer> |
intersection(RScoredSortedSet.Aggregate aggregate,
String... names)
Intersect provided ScoredSortedSets with defined aggregation method
and store result to current ScoredSortedSet
|
io.reactivex.Flowable<Integer> |
intersection(String... names)
Intersect provided ScoredSortedSets
and store result to current ScoredSortedSet
|
io.reactivex.Flowable<V> |
iterator() |
io.reactivex.Flowable<V> |
iterator(int count)
Returns an iterator over elements in this set.
|
io.reactivex.Flowable<V> |
iterator(String pattern)
Returns an iterator over elements in this set.
|
io.reactivex.Flowable<V> |
iterator(String pattern,
int count)
Returns an iterator over elements in this set.
|
io.reactivex.Flowable<V> |
last()
Returns the tail element or
null if this sorted set is empty. |
io.reactivex.Flowable<Double> |
lastScore()
Returns score of the tail element or returns
null if this sorted set is empty. |
io.reactivex.Flowable<V> |
pollFirst()
Removes and returns the head element or
null if this sorted set is empty. |
io.reactivex.Flowable<Collection<V>> |
pollFirst(int count)
Removes and returns the head elements or
null if this sorted set is empty. |
io.reactivex.Flowable<V> |
pollFirst(long timeout,
TimeUnit unit)
Removes and returns the head element or
null if this sorted set is empty. |
io.reactivex.Flowable<V> |
pollFirstFromAny(long timeout,
TimeUnit unit,
String... queueNames)
Removes and returns first available head element of any sorted set,
waiting up to the specified wait time if necessary for an element to become available
in any of defined sorted sets including this one.
|
io.reactivex.Flowable<V> |
pollLast()
Removes and returns the tail element or
null if this sorted set is empty. |
io.reactivex.Flowable<Collection<V>> |
pollLast(int count)
Removes and returns the tail elements or
null if this sorted set is empty. |
io.reactivex.Flowable<V> |
pollLast(long timeout,
TimeUnit unit)
Removes and returns the tail element or
null if this sorted set is empty. |
io.reactivex.Flowable<V> |
pollLastFromAny(long timeout,
TimeUnit unit,
String... queueNames)
Removes and returns first available tail element of any sorted set,
waiting up to the specified wait time if necessary for an element to become available
in any of defined sorted sets including this one.
|
io.reactivex.Flowable<Integer> |
rank(V o)
Returns rank of value, with the scores ordered from low to high.
|
io.reactivex.Flowable<Collection<V>> |
readAll()
Read all values at once.
|
io.reactivex.Flowable<Boolean> |
remove(V object) |
io.reactivex.Flowable<Boolean> |
removeAll(Collection<?> c) |
io.reactivex.Flowable<Integer> |
removeRangeByRank(int startIndex,
int endIndex) |
io.reactivex.Flowable<Integer> |
removeRangeByScore(double startScore,
boolean startScoreInclusive,
double endScore,
boolean endScoreInclusive) |
io.reactivex.Flowable<Boolean> |
retainAll(Collection<?> c) |
io.reactivex.Flowable<Integer> |
revRank(V o)
Returns rank of value, with the scores ordered from high to low.
|
io.reactivex.Flowable<Integer> |
size() |
io.reactivex.Flowable<V> |
takeFirst()
Removes and returns the head element waiting if necessary for an element to become available.
|
io.reactivex.Flowable<V> |
takeFirstElements()
Retrieves and removes continues stream of elements from the head.
|
io.reactivex.Flowable<V> |
takeLast()
Removes and returns the tail element waiting if necessary for an element to become available.
|
io.reactivex.Flowable<V> |
takeLastElements()
Retrieves and removes continues stream of elements from the tail.
|
io.reactivex.Flowable<Boolean> |
tryAdd(double score,
V object)
Adds element to this set only if has not been added before.
|
io.reactivex.Flowable<Integer> |
union(Map<String,Double> nameWithWeight)
Union provided ScoredSortedSets mapped to weight multiplier
and store result to current ScoredSortedSet
|
io.reactivex.Flowable<Integer> |
union(RScoredSortedSet.Aggregate aggregate,
Map<String,Double> nameWithWeight)
Union provided ScoredSortedSets mapped to weight multiplier
with defined aggregation method
and store result to current ScoredSortedSet
|
io.reactivex.Flowable<Integer> |
union(RScoredSortedSet.Aggregate aggregate,
String... names)
Union provided ScoredSortedSets with defined aggregation method
and store result to current ScoredSortedSet
|
io.reactivex.Flowable<Integer> |
union(String... names)
Union provided ScoredSortedSets
and store result to current ScoredSortedSet
|
io.reactivex.Flowable<Collection<V>> |
valueRange(double startScore,
boolean startScoreInclusive,
double endScore,
boolean endScoreInclusive) |
io.reactivex.Flowable<Collection<V>> |
valueRange(double startScore,
boolean startScoreInclusive,
double endScore,
boolean endScoreInclusive,
int offset,
int count) |
io.reactivex.Flowable<Collection<V>> |
valueRange(int startIndex,
int endIndex) |
io.reactivex.Flowable<Collection<V>> |
valueRangeReversed(double startScore,
boolean startScoreInclusive,
double endScore,
boolean endScoreInclusive)
Returns all values between
startScore and endScore in reversed order. |
io.reactivex.Flowable<Collection<V>> |
valueRangeReversed(double startScore,
boolean startScoreInclusive,
double endScore,
boolean endScoreInclusive,
int offset,
int count) |
io.reactivex.Flowable<Collection<V>> |
valueRangeReversed(int startIndex,
int endIndex) |
clearExpire, expire, expireAt, expireAt, remainTimeToLivecopy, delete, dump, getCodec, getName, isExists, migrate, move, rename, renamenx, restore, restore, restoreAndReplace, restoreAndReplace, touch, unlinkreadSorted, readSorted, readSorted, readSorted, readSorted, readSorted, sortTo, sortTo, sortTo, sortTo, sortTo, sortToio.reactivex.Flowable<V> pollLastFromAny(long timeout, TimeUnit unit, String... queueNames)
Requires Redis 5.0.0 and higher.
queueNames - - names of queuetimeout - how long to wait before giving up, in units of
unitunit - a TimeUnit determining how to interpret the
timeout parameternull if all sorted sets are emptyio.reactivex.Flowable<V> pollFirstFromAny(long timeout, TimeUnit unit, String... queueNames)
Requires Redis 5.0.0 and higher.
queueNames - - names of queuetimeout - how long to wait before giving up, in units of
unitunit - a TimeUnit determining how to interpret the
timeout parameternull if all sorted sets are emptyio.reactivex.Flowable<V> pollFirst(long timeout, TimeUnit unit)
null if this sorted set is empty.
Requires Redis 5.0.0 and higher.
timeout - how long to wait before giving up, in units of
unitunit - a TimeUnit determining how to interpret the
timeout parameternull if this sorted set is emptyio.reactivex.Flowable<V> pollLast(long timeout, TimeUnit unit)
null if this sorted set is empty.
Requires Redis 5.0.0 and higher.
timeout - how long to wait before giving up, in units of
unitunit - a TimeUnit determining how to interpret the
timeout parameternull if this sorted set is emptyio.reactivex.Flowable<Collection<V>> pollFirst(int count)
null if this sorted set is empty.count - - elements amountnull if this sorted set is emptyio.reactivex.Flowable<Collection<V>> pollLast(int count)
null if this sorted set is empty.count - - elements amountnull if this sorted set is emptyio.reactivex.Flowable<V> pollFirst()
null if this sorted set is empty.null if this sorted set is emptyio.reactivex.Flowable<V> pollLast()
null if this sorted set is empty.null if this sorted set is emptyio.reactivex.Flowable<V> first()
null if this sorted set is empty.null if this sorted set is emptyio.reactivex.Flowable<V> last()
null if this sorted set is empty.null if this sorted set is emptyio.reactivex.Flowable<Double> firstScore()
null if this sorted set is empty.null if this sorted set is emptyio.reactivex.Flowable<Double> lastScore()
null if this sorted set is empty.null if this sorted set is emptyio.reactivex.Flowable<V> iterator(String pattern)
pattern is not null then only elements match this pattern are loaded.pattern - - search patternio.reactivex.Flowable<V> iterator(int count)
count param.count - - size of elements batchio.reactivex.Flowable<V> iterator(String pattern, int count)
count param.
If pattern is not null then only elements match this pattern are loaded.pattern - - search patterncount - - size of elements batchio.reactivex.Flowable<V> iterator()
io.reactivex.Flowable<Integer> removeRangeByScore(double startScore, boolean startScoreInclusive, double endScore, boolean endScoreInclusive)
io.reactivex.Flowable<Integer> removeRangeByRank(int startIndex, int endIndex)
io.reactivex.Flowable<Integer> rank(V o)
o - - objectnull if value does not existio.reactivex.Flowable<Integer> revRank(V o)
o - - objectnull if value does not existio.reactivex.Flowable<Boolean> add(double score, V object)
score - - object scoreobject - - object itselftrue if element has added and false if not.io.reactivex.Flowable<Integer> addAndGetRank(double score, V object)
score - - object scoreobject - - object itselfio.reactivex.Flowable<Integer> addAndGetRevRank(double score, V object)
score - - object scoreobject - - object itselfio.reactivex.Flowable<Boolean> tryAdd(double score, V object)
Requires Redis 3.0.2 and higher.
score - - object scoreobject - - object itselftrue if element has added and false if not.io.reactivex.Flowable<Integer> size()
io.reactivex.Flowable<Boolean> containsAll(Collection<?> c)
io.reactivex.Flowable<Boolean> removeAll(Collection<?> c)
io.reactivex.Flowable<Boolean> retainAll(Collection<?> c)
io.reactivex.Flowable<Integer> addScoreAndGetRevRank(V object, Number value)
object - - object itselfvalue - - object scoreio.reactivex.Flowable<Integer> addScoreAndGetRank(V object, Number value)
object - - object itselfvalue - - object scoreio.reactivex.Flowable<Collection<V>> valueRange(int startIndex, int endIndex)
io.reactivex.Flowable<Collection<ScoredEntry<V>>> entryRange(int startIndex, int endIndex)
io.reactivex.Flowable<Collection<V>> valueRange(double startScore, boolean startScoreInclusive, double endScore, boolean endScoreInclusive)
io.reactivex.Flowable<Collection<ScoredEntry<V>>> entryRange(double startScore, boolean startScoreInclusive, double endScore, boolean endScoreInclusive)
io.reactivex.Flowable<Collection<V>> valueRange(double startScore, boolean startScoreInclusive, double endScore, boolean endScoreInclusive, int offset, int count)
io.reactivex.Flowable<Collection<ScoredEntry<V>>> entryRange(double startScore, boolean startScoreInclusive, double endScore, boolean endScoreInclusive, int offset, int count)
io.reactivex.Flowable<Collection<V>> valueRangeReversed(int startIndex, int endIndex)
io.reactivex.Flowable<Collection<V>> valueRangeReversed(double startScore, boolean startScoreInclusive, double endScore, boolean endScoreInclusive)
startScore and endScore in reversed order.startScore - - start score.
Use Double.POSITIVE_INFINITY or Double.NEGATIVE_INFINITY
to define infinity numbersstartScoreInclusive - - start score inclusiveendScore - - end score
Use Double.POSITIVE_INFINITY or Double.NEGATIVE_INFINITY
to define infinity numbersendScoreInclusive - - end score inclusiveio.reactivex.Flowable<Collection<V>> valueRangeReversed(double startScore, boolean startScoreInclusive, double endScore, boolean endScoreInclusive, int offset, int count)
io.reactivex.Flowable<Collection<ScoredEntry<V>>> entryRangeReversed(int startIndex, int endIndex)
io.reactivex.Flowable<Collection<ScoredEntry<V>>> entryRangeReversed(double startScore, boolean startScoreInclusive, double endScore, boolean endScoreInclusive)
io.reactivex.Flowable<Collection<ScoredEntry<V>>> entryRangeReversed(double startScore, boolean startScoreInclusive, double endScore, boolean endScoreInclusive, int offset, int count)
io.reactivex.Flowable<Long> count(double startScore, boolean startScoreInclusive, double endScore, boolean endScoreInclusive)
startScore and endScore.startScore - - start scorestartScoreInclusive - - start score inclusiveendScore - - end scoreendScoreInclusive - - end score inclusiveio.reactivex.Flowable<Collection<V>> readAll()
io.reactivex.Flowable<Integer> intersection(String... names)
names - - names of ScoredSortedSetio.reactivex.Flowable<Integer> intersection(RScoredSortedSet.Aggregate aggregate, String... names)
aggregate - - score aggregation modenames - - names of ScoredSortedSetio.reactivex.Flowable<Integer> intersection(Map<String,Double> nameWithWeight)
nameWithWeight - - name of ScoredSortedSet mapped to weight multiplierio.reactivex.Flowable<Integer> intersection(RScoredSortedSet.Aggregate aggregate, Map<String,Double> nameWithWeight)
aggregate - - score aggregation modenameWithWeight - - name of ScoredSortedSet mapped to weight multiplierio.reactivex.Flowable<Integer> union(String... names)
names - - names of ScoredSortedSetio.reactivex.Flowable<Integer> union(RScoredSortedSet.Aggregate aggregate, String... names)
aggregate - - score aggregation modenames - - names of ScoredSortedSetio.reactivex.Flowable<Integer> union(Map<String,Double> nameWithWeight)
nameWithWeight - - name of ScoredSortedSet mapped to weight multiplierio.reactivex.Flowable<Integer> union(RScoredSortedSet.Aggregate aggregate, Map<String,Double> nameWithWeight)
aggregate - - score aggregation modenameWithWeight - - name of ScoredSortedSet mapped to weight multiplierio.reactivex.Flowable<V> takeFirst()
io.reactivex.Flowable<V> takeLast()
io.reactivex.Flowable<V> takeFirstElements()
io.reactivex.Flowable<V> takeLastElements()
Copyright © 2014–2018 The Redisson Project. All rights reserved.