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>
Modifier and Type | Method and Description |
---|---|
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, setCurrentKey
createOrUpdateInternalState, createOrUpdateInternalState, createOrUpdateInternalState
create, create
snapshot
KeyGroupRange getKeyGroupRange()
@Nonnull SavepointResources<K> savepoint() throws Exception
SavepointResources
that can be used by SavepointSnapshotStrategy
to
write out a savepoint in the common/unified format.Exception
Copyright © 2014–2024 The Apache Software Foundation. All rights reserved.