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, theKeyedStateBackendinterface, which encapsulates methods responsible for keyed state management and theSnapshotablewhich tells the system how to snapshot the underlying state.NOTE: State backends that need to be notified of completed checkpoints can additionally implement the
CheckpointListenerinterface.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.apache.flink.runtime.state.KeyedStateBackend
KeyedStateBackend.KeySelectionListener<K>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description KeyGroupRangegetKeyGroupRange()Returns the key groups which this state backend is responsible for.SavepointResources<K>savepoint()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, setCurrentKeyAndKeyGroup
-
Methods inherited from interface org.apache.flink.runtime.state.KeyedStateFactory
createOrUpdateInternalState, createOrUpdateInternalState, createOrUpdateInternalState
-
Methods inherited from interface org.apache.flink.runtime.state.PriorityQueueSetFactory
create, create
-
Methods inherited from interface org.apache.flink.runtime.state.Snapshotable
snapshot
-
-
-
-
Method Detail
-
getKeyGroupRange
KeyGroupRange getKeyGroupRange()
Returns the key groups which this state backend is responsible for.
-
savepoint
@Nonnull SavepointResources<K> savepoint() throws Exception
Returns aSavepointResourcesthat can be used bySavepointSnapshotStrategyto write out a savepoint in the common/unified format.- Throws:
Exception
-
-