K - Type of the key by which state is keyed.public interface CheckpointableKeyedStateBackend<K> extends KeyedStateBackend<K>, Snapshotable<SnapshotResult<KeyedStateHandle>>, Closeable
KeyedStateBackend interface, which encapsulates methods
responsible for keyed state management and the Snapshotable which tells the system how to
snapshot the underlying state.
NOTE: State backends that need to be notified of completed checkpoints can additionally
implement the CheckpointListener interface.
KeyedStateBackend.KeySelectionListener<K>| 限定符和类型 | 方法和说明 |
|---|---|
KeyGroupRange |
getKeyGroupRange()
Returns the key groups which this state backend is responsible for.
|
SavepointResources<K> |
savepoint()
Returns a
SavepointResources that can be used by SavepointSnapshotStrategy to
write out a savepoint in the common/unified format. |
applyToAllKeys, deregisterKeySelectionListener, dispose, getCurrentKey, getKeys, getKeysAndNamespaces, getKeySerializer, getOrCreateKeyedState, getPartitionedState, isSafeToReuseKVState, isStateImmutableInStateBackend, registerKeySelectionListener, setCurrentKeycreateOrUpdateInternalState, createOrUpdateInternalState, createOrUpdateInternalStatecreate, createsnapshotKeyGroupRange getKeyGroupRange()
@Nonnull SavepointResources<K> savepoint() throws Exception
SavepointResources that can be used by SavepointSnapshotStrategy to
write out a savepoint in the common/unified format.ExceptionCopyright © 2014–2023 The Apache Software Foundation. All rights reserved.