public class MVStateStoreManager<V> extends AbstractStateStoreManager<V>
frontStore, keyGroupIndex, kvStore, middleStore| Constructor and Description |
|---|
MVStateStoreManager(KeyValueStore<String,Map<Long,byte[]>> kvStore) |
| Modifier and Type | Method and Description |
|---|---|
void |
ackCommit(long checkpointId) |
void |
commit(long checkpointId)
The commit method is used for persistent, and can be used in another thread to reach async
state commit.
|
void |
finish(long checkpointId)
The finish method is used when the batched data is all saved in state.
|
V |
get(long checkpointId,
String key) |
void |
put(long checkpointId,
String k,
V v) |
void |
rollBack(long checkpointId)
The rollback method is used for recovering the checkpoint.
|
ackCommit, close, setKeyGroupIndex, toBytes, toStorageRecordpublic MVStateStoreManager(KeyValueStore<String,Map<Long,byte[]>> kvStore)
public void finish(long checkpointId)
StateStoreManagerpublic void commit(long checkpointId)
StateStoreManagerpublic void rollBack(long checkpointId)
StateStoreManagerpublic V get(long checkpointId, String key)
get in class AbstractStateStoreManager<V>public void put(long checkpointId,
String k,
V v)
put in class AbstractStateStoreManager<V>public void ackCommit(long checkpointId)
ackCommit in class AbstractStateStoreManager<V>Copyright © 2020. All rights reserved.