Class TransactionalMap<T>
- java.lang.Object
-
- org.apache.storm.trident.state.map.TransactionalMap<T>
-
- All Implemented Interfaces:
MapState<T>
,ReadOnlyMapState<T>
,State
public class TransactionalMap<T> extends Object implements MapState<T>
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
TransactionalMap(IBackingMap<TransactionalValue> backing)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
beginCommit(Long txid)
static <T> MapState<T>
build(IBackingMap<TransactionalValue> backing)
void
commit(Long txid)
List<T>
multiGet(List<List<Object>> keys)
void
multiPut(List<List<Object>> keys, List<T> vals)
List<T>
multiUpdate(List<List<Object>> keys, List<ValueUpdater> updaters)
-
-
-
Constructor Detail
-
TransactionalMap
protected TransactionalMap(IBackingMap<TransactionalValue> backing)
-
-
Method Detail
-
build
public static <T> MapState<T> build(IBackingMap<TransactionalValue> backing)
-
multiGet
public List<T> multiGet(List<List<Object>> keys)
- Specified by:
multiGet
in interfaceReadOnlyMapState<T>
-
multiUpdate
public List<T> multiUpdate(List<List<Object>> keys, List<ValueUpdater> updaters)
- Specified by:
multiUpdate
in interfaceMapState<T>
-
beginCommit
public void beginCommit(Long txid)
- Specified by:
beginCommit
in interfaceState
-
-