protected static class RedisSparseMatrixState.RedisSparseVector<T> extends Object implements SparseMatrixState.SparseVector<T>
| Modifier and Type | Field and Description |
|---|---|
protected storm.trident.state.Serializer<T> |
serializer |
| Constructor and Description |
|---|
RedisSparseMatrixState.RedisSparseVector() |
RedisSparseMatrixState.RedisSparseVector(Map<String,String> values,
storm.trident.state.Serializer<T> serializer) |
protected storm.trident.state.Serializer<T> serializer
public RedisSparseMatrixState.RedisSparseVector()
public T get(long i)
SparseMatrixState.SparseVectorget in interface SparseMatrixState.SparseVector<T>i - value indexnull if no value was foundpublic void set(long i,
T value)
SparseMatrixState.SparseVectorset in interface SparseMatrixState.SparseVector<T>i - value indexvalue - the new valuepublic Set<Long> indexes()
SparseMatrixState.SparseVectorSet of the present indexes (ordered ASC)indexes in interface SparseMatrixState.SparseVector<T>Copyright © 2013. All rights reserved.