public class MemorySortedSetMultiMapState<K,T> extends TransactionalMemoryMapState<TreeSet<SortedSetMultiMapState.ScoredValue<T>>> implements SortedSetMultiMapState<K,T>
| Modifier and Type | Class and Description |
|---|---|
static class |
MemorySortedSetMultiMapState.Factory |
TransactionalMemoryMapState.MemoryMapStateBacking<T>SortedSetMultiMapState.ScoredValue<T>| Constructor and Description |
|---|
MemorySortedSetMultiMapState(String id) |
| Modifier and Type | Method and Description |
|---|---|
protected TreeSet<SortedSetMultiMapState.ScoredValue<T>> |
get(K key) |
double |
getScore(K key,
T value) |
List<SortedSetMultiMapState.ScoredValue<T>> |
getSorted(K key,
int count) |
boolean |
put(K key,
SortedSetMultiMapState.ScoredValue<T> scoredValue) |
long |
sizeOf(K key) |
beginCommit, commit, get, getTuples, multiGet, multiPut, multiUpdate, set, updatepublic MemorySortedSetMultiMapState(String id)
public long sizeOf(K key)
sizeOf in interface SortedSetMultiMapState<K,T>public boolean put(K key, SortedSetMultiMapState.ScoredValue<T> scoredValue)
put in interface SortedSetMultiMapState<K,T>public List<SortedSetMultiMapState.ScoredValue<T>> getSorted(K key, int count)
getSorted in interface SortedSetMultiMapState<K,T>public double getScore(K key, T value)
getScore in interface SortedSetMultiMapState<K,T>protected TreeSet<SortedSetMultiMapState.ScoredValue<T>> get(K key)
Copyright © 2013. All Rights Reserved.