public class LRUMemoryMapState<T> extends Object implements Snapshottable<T>, ITupleCollection, MapState<T>
| Modifier and Type | Class and Description |
|---|---|
static class |
LRUMemoryMapState.Factory |
| Constructor and Description |
|---|
LRUMemoryMapState(int cacheSize,
String id) |
| Modifier and Type | Method and Description |
|---|---|
void |
beginCommit(Long txid) |
void |
commit(Long txid) |
T |
get() |
Iterator<List<Object>> |
getTuples() |
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) |
void |
set(T o) |
T |
update(ValueUpdater updater) |
public LRUMemoryMapState(int cacheSize,
String id)
public T update(ValueUpdater updater)
update in interface Snapshottable<T>public void set(T o)
set in interface Snapshottable<T>public T get()
get in interface ReadOnlySnapshottable<T>public void beginCommit(Long txid)
beginCommit in interface Statepublic Iterator<List<Object>> getTuples()
getTuples in interface ITupleCollectionpublic List<T> multiUpdate(List<List<Object>> keys, List<ValueUpdater> updaters)
multiUpdate in interface MapState<T>Copyright © 2021 The Apache Software Foundation. All rights reserved.