public class MemorySetMultiMapState<K,V> extends TransactionalMemoryMapState<Set<V>> implements SetMultiMapState<K,V>
| Modifier and Type | Class and Description |
|---|---|
static class |
MemorySetMultiMapState.Factory<K,V> |
TransactionalMemoryMapState.MemoryMapStateBacking<T>| Constructor and Description |
|---|
MemorySetMultiMapState(String id) |
| Modifier and Type | Method and Description |
|---|---|
Set<V> |
get(K key)
Returns a
Set view of all values associated with a key. |
boolean |
put(K key,
V value)
Stores a key-value pair in the multimap.
|
long |
sizeOf(K key)
Returns the numbers of values which are mapped to a given key
|
beginCommit, commit, get, getTuples, multiGet, multiPut, multiUpdate, set, updatepublic MemorySetMultiMapState(String id)
public long sizeOf(K key)
SetMultiMapStatesizeOf in interface SetMultiMapState<K,V>public Set<V> get(K key)
SetMultiMapStateSet view of all values associated with a key. If
there's no mappings, an empty Set is returned.get in interface SetMultiMapState<K,V>public boolean put(K key, V value)
SetMultiMapStateput in interface SetMultiMapState<K,V>key - key to storevalue - value to storetrue if this changed the stateCopyright © 2013. All rights reserved.