public interface RScoredSortedSet<V> extends RScoredSortedSetAsync<V>, Iterable<V>, RExpirable
Modifier and Type | Method and Description |
---|---|
boolean |
add(double score,
V object)
Adds element to this set, overrides previous score if it has been already added.
|
Long |
addAll(Map<V,Double> objects) |
Double |
addScore(V object,
Number value) |
void |
clear() |
boolean |
contains(Object o) |
boolean |
containsAll(Collection<?> c) |
Long |
count(double startScore,
boolean startScoreInclusive,
double endScore,
boolean endScoreInclusive)
Returns the number of elements with a score between
startScore and endScore . |
Collection<ScoredEntry<V>> |
entryRange(double startScore,
boolean startScoreInclusive,
double endScore,
boolean endScoreInclusive) |
Collection<ScoredEntry<V>> |
entryRange(double startScore,
boolean startScoreInclusive,
double endScore,
boolean endScoreInclusive,
int offset,
int count) |
Collection<ScoredEntry<V>> |
entryRange(int startIndex,
int endIndex) |
Collection<ScoredEntry<V>> |
entryRangeReversed(double startScore,
boolean startScoreInclusive,
double endScore,
boolean endScoreInclusive,
int offset,
int count) |
V |
first() |
Double |
getScore(V o) |
boolean |
isEmpty() |
V |
last() |
V |
pollFirst() |
V |
pollLast() |
Integer |
rank(V o)
Returns rank of value, with the scores ordered from low to high.
|
Collection<V> |
readAll()
Read all values at once.
|
boolean |
remove(Object o) |
boolean |
removeAll(Collection<?> c) |
int |
removeRangeByRank(int startIndex,
int endIndex) |
int |
removeRangeByScore(double startScore,
boolean startScoreInclusive,
double endScore,
boolean endScoreInclusive) |
boolean |
retainAll(Collection<?> c) |
Integer |
revRank(V o)
Returns rank of value, with the scores ordered from high to low.
|
int |
size() |
Object[] |
toArray() |
<T> T[] |
toArray(T[] a) |
boolean |
tryAdd(double score,
V object)
Adds element to this set only if has not been added before.
|
Collection<V> |
valueRange(double startScore,
boolean startScoreInclusive,
double endScore,
boolean endScoreInclusive) |
Collection<V> |
valueRange(double startScore,
boolean startScoreInclusive,
double endScore,
boolean endScoreInclusive,
int offset,
int count) |
Collection<V> |
valueRange(int startIndex,
int endIndex) |
Collection<V> |
valueRangeReversed(double startScore,
boolean startScoreInclusive,
double endScore,
boolean endScoreInclusive) |
Collection<V> |
valueRangeReversed(double startScore,
boolean startScoreInclusive,
double endScore,
boolean endScoreInclusive,
int offset,
int count) |
addAllAsync, addAsync, addScoreAsync, containsAllAsync, containsAsync, countAsync, entryRangeAsync, entryRangeAsync, entryRangeAsync, entryRangeReversedAsync, firstAsync, getScoreAsync, lastAsync, pollFirstAsync, pollLastAsync, rankAsync, readAllAsync, removeAllAsync, removeAsync, removeRangeByRankAsync, removeRangeByScoreAsync, retainAllAsync, revRankAsync, sizeAsync, tryAddAsync, valueRangeAsync, valueRangeAsync, valueRangeAsync, valueRangeReversedAsync, valueRangeReversedAsync
clearExpire, expire, expireAt, expireAt, remainTimeToLive
delete, getName, isExists, migrate, move, rename, renamenx
clearExpireAsync, expireAsync, expireAtAsync, expireAtAsync, remainTimeToLiveAsync
deleteAsync, isExistsAsync, migrateAsync, moveAsync, renameAsync, renamenxAsync
V pollFirst()
V pollLast()
V first()
V last()
int removeRangeByScore(double startScore, boolean startScoreInclusive, double endScore, boolean endScoreInclusive)
int removeRangeByRank(int startIndex, int endIndex)
Integer rank(V o)
o
- null
if value does not existInteger revRank(V o)
o
- null
if value does not existboolean add(double score, V object)
score
- object
- true
if element has added and false
if not.boolean tryAdd(double score, V object)
score
- object
- true
if element has added and false
if not.int size()
boolean isEmpty()
boolean contains(Object o)
Object[] toArray()
<T> T[] toArray(T[] a)
boolean remove(Object o)
boolean containsAll(Collection<?> c)
boolean removeAll(Collection<?> c)
boolean retainAll(Collection<?> c)
void clear()
Collection<V> valueRange(int startIndex, int endIndex)
Collection<ScoredEntry<V>> entryRange(int startIndex, int endIndex)
Collection<V> valueRange(double startScore, boolean startScoreInclusive, double endScore, boolean endScoreInclusive)
Collection<V> valueRangeReversed(double startScore, boolean startScoreInclusive, double endScore, boolean endScoreInclusive)
Collection<ScoredEntry<V>> entryRange(double startScore, boolean startScoreInclusive, double endScore, boolean endScoreInclusive)
Collection<V> valueRange(double startScore, boolean startScoreInclusive, double endScore, boolean endScoreInclusive, int offset, int count)
Collection<V> valueRangeReversed(double startScore, boolean startScoreInclusive, double endScore, boolean endScoreInclusive, int offset, int count)
Collection<ScoredEntry<V>> entryRange(double startScore, boolean startScoreInclusive, double endScore, boolean endScoreInclusive, int offset, int count)
Collection<ScoredEntry<V>> entryRangeReversed(double startScore, boolean startScoreInclusive, double endScore, boolean endScoreInclusive, int offset, int count)
Long count(double startScore, boolean startScoreInclusive, double endScore, boolean endScoreInclusive)
startScore
and endScore
.startScore
- startScoreInclusive
- endScore
- endScoreInclusive
- Collection<V> readAll()
Copyright © 2014–2016. All rights reserved.