Package org.apache.flink.runtime.state
Interface CheckpointableKeyedStateBackend<K>
- Type Parameters:
K- Type of the key by which state is keyed.
- All Superinterfaces:
AutoCloseable,Closeable,org.apache.flink.util.Disposable,KeyedStateBackend<K>,KeyedStateFactory,PriorityQueueSetFactory,Snapshotable<SnapshotResult<KeyedStateHandle>>
- All Known Implementing Classes:
AbstractKeyedStateBackend,BatchExecutionKeyedStateBackend,HeapKeyedStateBackend
public interface CheckpointableKeyedStateBackend<K>
extends KeyedStateBackend<K>, Snapshotable<SnapshotResult<KeyedStateHandle>>, Closeable
Interface that combines both, the
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.
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.apache.flink.runtime.state.KeyedStateBackend
KeyedStateBackend.KeySelectionListener<K> -
Method Summary
Modifier and TypeMethodDescriptionReturns the key groups which this state backend is responsible for.Returns aSavepointResourcesthat can be used bySavepointSnapshotStrategyto write out a savepoint in the common/unified format.Methods inherited from interface org.apache.flink.runtime.state.KeyedStateBackend
applyToAllKeys, deregisterKeySelectionListener, dispose, getCurrentKey, getKeys, getKeysAndNamespaces, getKeySerializer, getOrCreateKeyedState, getPartitionedState, isSafeToReuseKVState, registerKeySelectionListener, setCurrentKey, setCurrentKeyAndKeyGroupMethods inherited from interface org.apache.flink.runtime.state.KeyedStateFactory
createOrUpdateInternalState, createOrUpdateInternalState, createOrUpdateInternalStateMethods inherited from interface org.apache.flink.runtime.state.PriorityQueueSetFactory
create, createMethods inherited from interface org.apache.flink.runtime.state.Snapshotable
snapshot
-
Method Details
-
getKeyGroupRange
KeyGroupRange getKeyGroupRange()Returns the key groups which this state backend is responsible for. -
savepoint
Returns aSavepointResourcesthat can be used bySavepointSnapshotStrategyto write out a savepoint in the common/unified format.- Throws:
Exception
-