K - the type of keysV - the type of valuespublic interface SortedSetMultiMapState<K,V> extends ExtendedState<V>
State which wrap access to a Multimap that cannot hold duplicate
key-value pairs. Adding a key-value pair that's already in the multimap has
no effect. This class is very similar to the SetMultiMapState. The
difference is that every member is associated with score, that is used in
order to take the sorted set ordered, from the smallest to the greatest
score. While members are unique, scores may be repeated.| Modifier and Type | Interface and Description |
|---|---|
static class |
SortedSetMultiMapState.ScoredValue<V> |
| Modifier and Type | Method and Description |
|---|---|
double |
getScore(K key,
V value)
Returns the score of value in the sorted set at key.
|
List<SortedSetMultiMapState.ScoredValue<V>> |
getSorted(K key,
int count)
Returns the specified range of elements in the sorted set stored at key.
|
boolean |
put(K key,
SortedSetMultiMapState.ScoredValue<V> value)
Adds the specified value with the specified score to the sorted set
stored at key.
|
long |
sizeOf(K key)
Returns the numbers of values which are mapped to a given key
|
long sizeOf(K key)
key - boolean put(K key, SortedSetMultiMapState.ScoredValue<V> value)
key - key to storevalue - scored value to storetrue if this set changed as a result of the callList<SortedSetMultiMapState.ScoredValue<V>> getSorted(K key, int count)
key - the key whose associated set is usedcount - the maximum number of scored values returnedCopyright © 2013. All rights reserved.