Package org.apache.storm.trident.testing
Class LRUMemoryMapState<T>
java.lang.Object
org.apache.storm.trident.testing.LRUMemoryMapState<T>
- All Implemented Interfaces:
ITupleCollection
,MapState<T>
,ReadOnlyMapState<T>
,ReadOnlySnapshottable<T>
,Snapshottable<T>
,State
public class LRUMemoryMapState<T>
extends Object
implements Snapshottable<T>, ITupleCollection, MapState<T>
-
Nested Class Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
beginCommit
(Long txid) void
get()
void
multiUpdate
(List<List<Object>> keys, List<ValueUpdater> updaters) void
update
(ValueUpdater updater)
-
Constructor Details
-
LRUMemoryMapState
-
-
Method Details
-
update
- Specified by:
update
in interfaceSnapshottable<T>
-
set
- Specified by:
set
in interfaceSnapshottable<T>
-
get
- Specified by:
get
in interfaceReadOnlySnapshottable<T>
-
beginCommit
- Specified by:
beginCommit
in interfaceState
-
commit
-
getTuples
- Specified by:
getTuples
in interfaceITupleCollection
-
multiUpdate
- Specified by:
multiUpdate
in interfaceMapState<T>
-
multiPut
-
multiGet
- Specified by:
multiGet
in interfaceReadOnlyMapState<T>
-