public class RedisSetMultiMapState<K,V> extends AbstractRedisState<V> implements SetMultiMapState<K,V>
| Modifier and Type | Class and Description |
|---|---|
static class |
RedisSetMultiMapState.Factory<K,V> |
config, id, pool, serializer| Constructor and Description |
|---|
RedisSetMultiMapState(String id) |
RedisSetMultiMapState(String id,
RedisConfig config) |
| Modifier and Type | Method and Description |
|---|---|
void |
beginCommit(Long txid) |
void |
commit(Long txid) |
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
|
flushAll, generateKey, generateKey, generateKeypublic RedisSetMultiMapState(String id)
public RedisSetMultiMapState(String id, RedisConfig config)
public void beginCommit(Long txid)
beginCommit in interface storm.trident.state.Statepublic void commit(Long txid)
commit in interface storm.trident.state.Statepublic long sizeOf(K key)
SetMultiMapStatesizeOf 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 statepublic 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>Copyright © 2013. All rights reserved.