public abstract class AbstractStateStoreManager<V> extends Object implements StateStoreManager
| Modifier and Type | Field and Description |
|---|---|
protected Map<String,StorageRecord<V>> |
frontStore
read-write
|
protected int |
keyGroupIndex |
protected KeyValueStore<String,Map<Long,byte[]>> |
kvStore
remote-storage
|
protected Map<Long,Map<String,byte[]>> |
middleStore
read-only
|
| Constructor and Description |
|---|
AbstractStateStoreManager(KeyValueStore<String,Map<Long,byte[]>> backStore) |
| Modifier and Type | Method and Description |
|---|---|
abstract void |
ackCommit(long checkpointId) |
void |
ackCommit(long checkpointId,
long timeStamp)
The ackCommit method is used for cleaning the last checkpoint, and must be called after commit
in the same thread.
|
void |
close() |
abstract V |
get(long checkpointId,
String key) |
void |
put(long checkpointId,
String k,
V v) |
void |
setKeyGroupIndex(int keyGroupIndex) |
byte[] |
toBytes(StorageRecord storageRecord) |
StorageRecord<V> |
toStorageRecord(byte[] data) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcommit, finish, rollBackprotected Map<String,StorageRecord<V>> frontStore
protected KeyValueStore<String,Map<Long,byte[]>> kvStore
protected int keyGroupIndex
public AbstractStateStoreManager(KeyValueStore<String,Map<Long,byte[]>> backStore)
public byte[] toBytes(StorageRecord storageRecord)
public StorageRecord<V> toStorageRecord(byte[] data)
public void ackCommit(long checkpointId,
long timeStamp)
StateStoreManagerackCommit in interface StateStoreManagerpublic abstract void ackCommit(long checkpointId)
public void setKeyGroupIndex(int keyGroupIndex)
public void close()
Copyright © 2020. All rights reserved.