storm.trident.state.map
Class SnapshottableMap<T>
java.lang.Object
storm.trident.state.map.SnapshottableMap<T>
- All Implemented Interfaces:
- MapState<T>, ReadOnlyMapState<T>, ReadOnlySnapshottable<T>, Snapshottable<T>, State
public class SnapshottableMap<T>
- extends java.lang.Object
- implements MapState<T>, Snapshottable<T>
Method Summary |
void |
beginCommit(java.lang.Long txid)
|
void |
commit(java.lang.Long txid)
|
T |
get()
|
java.util.List<T> |
multiGet(java.util.List<java.util.List<java.lang.Object>> keys)
|
void |
multiPut(java.util.List<java.util.List<java.lang.Object>> keys,
java.util.List<T> vals)
|
java.util.List<T> |
multiUpdate(java.util.List<java.util.List<java.lang.Object>> keys,
java.util.List<ValueUpdater> updaters)
|
void |
set(T o)
|
T |
update(ValueUpdater updater)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SnapshottableMap
public SnapshottableMap(MapState<T> delegate,
java.util.List<java.lang.Object> snapshotKey)
multiGet
public java.util.List<T> multiGet(java.util.List<java.util.List<java.lang.Object>> keys)
- Specified by:
multiGet
in interface ReadOnlyMapState<T>
multiUpdate
public java.util.List<T> multiUpdate(java.util.List<java.util.List<java.lang.Object>> keys,
java.util.List<ValueUpdater> updaters)
- Specified by:
multiUpdate
in interface MapState<T>
multiPut
public void multiPut(java.util.List<java.util.List<java.lang.Object>> keys,
java.util.List<T> vals)
- Specified by:
multiPut
in interface MapState<T>
beginCommit
public void beginCommit(java.lang.Long txid)
- Specified by:
beginCommit
in interface State
commit
public void commit(java.lang.Long txid)
- Specified by:
commit
in interface State
get
public T get()
- Specified by:
get
in interface ReadOnlySnapshottable<T>
update
public T update(ValueUpdater updater)
- Specified by:
update
in interface Snapshottable<T>
set
public void set(T o)
- Specified by:
set
in interface Snapshottable<T>