public class RedisSortedSetMultiMapState<K,V> extends AbstractRedisState implements SortedSetMultiMapState<K,V>
| Modifier and Type | Class and Description |
|---|---|
static class |
RedisSortedSetMultiMapState.Factory |
SortedSetMultiMapState.ScoredValue<T>DEFAULT_HOST, DEFAULT_PORT, host, id, pool, port, REDIS_HOST_CONF, REDIS_PORT_CONF, serializer| Constructor and Description |
|---|
RedisSortedSetMultiMapState(String id) |
RedisSortedSetMultiMapState(String id,
String host,
int port) |
| Modifier and Type | Method and Description |
|---|---|
void |
beginCommit(Long txid) |
void |
commit(Long txid) |
double |
getScore(K key,
V value) |
List<SortedSetMultiMapState.ScoredValue<V>> |
getSorted(K key,
int count) |
boolean |
put(K key,
SortedSetMultiMapState.ScoredValue<V> value) |
long |
sizeOf(K key) |
flushAll, generateKey, generateKey, generateKey, getHost, getPortpublic RedisSortedSetMultiMapState(String id)
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)
sizeOf in interface SortedSetMultiMapState<K,V>public boolean put(K key, SortedSetMultiMapState.ScoredValue<V> value)
put in interface SortedSetMultiMapState<K,V>public List<SortedSetMultiMapState.ScoredValue<V>> getSorted(K key, int count)
getSorted in interface SortedSetMultiMapState<K,V>Copyright © 2013. All Rights Reserved.