public class SnapshottableMap<T> extends Object implements MapState<T>, Snapshottable<T>
Constructor and Description |
---|
SnapshottableMap(MapState<T> delegate,
List<Object> snapshotKey) |
Modifier and Type | Method and Description |
---|---|
void |
beginCommit(Long txid) |
void |
commit(Long txid) |
T |
get() |
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 List<T> multiGet(List<List<Object>> keys)
multiGet
in interface ReadOnlyMapState<T>
public List<T> multiUpdate(List<List<Object>> keys, List<ValueUpdater> updaters)
multiUpdate
in interface MapState<T>
public void beginCommit(Long txid)
beginCommit
in interface State
public T get()
get
in interface ReadOnlySnapshottable<T>
public T update(ValueUpdater updater)
update
in interface Snapshottable<T>
public void set(T o)
set
in interface Snapshottable<T>
Copyright © 2023 The Apache Software Foundation. All rights reserved.