Package org.apache.flink.runtime.state
Class NoOpTaskLocalStateStoreImpl
java.lang.Object
org.apache.flink.runtime.state.NoOpTaskLocalStateStoreImpl
- All Implemented Interfaces:
OwnedTaskLocalStateStore,TaskLocalStateStore
This class implements a
TaskLocalStateStore with no functionality and is used when local
recovery is disabled.-
Method Summary
Modifier and TypeMethodDescriptionvoidabortCheckpoint(long abortedCheckpointId) Notifies that the checkpoint with the given id was confirmed as aborted.voidconfirmCheckpoint(long confirmedCheckpointId) Notifies that the checkpoint with the given id was confirmed as complete.dispose()Disposes the task local state store.Returns theLocalRecoveryConfigfor this task local state store.voidpruneMatchingCheckpoints(LongPredicate matcher) Remove all checkpoints from the store that match the given predicate.retrieveLocalState(long checkpointID) Returns the local state that is stored under the given checkpoint id or null if nothing was stored under the id.voidstoreLocalState(long checkpointId, TaskStateSnapshot localState) Stores the local state for the given checkpoint id.
-
Method Details
-
getLocalRecoveryConfig
Description copied from interface:TaskLocalStateStoreReturns theLocalRecoveryConfigfor this task local state store.- Specified by:
getLocalRecoveryConfigin interfaceTaskLocalStateStore
-
dispose
Description copied from interface:OwnedTaskLocalStateStoreDisposes the task local state store. Disposal can happen asynchronously and completion is signaled through the returned future.- Specified by:
disposein interfaceOwnedTaskLocalStateStore
-
storeLocalState
Description copied from interface:TaskLocalStateStoreStores the local state for the given checkpoint id.- Specified by:
storeLocalStatein interfaceTaskLocalStateStore- Parameters:
checkpointId- id for the checkpoint that created the local state that will be stored.localState- the local state to store.
-
retrieveLocalState
Description copied from interface:TaskLocalStateStoreReturns the local state that is stored under the given checkpoint id or null if nothing was stored under the id.- Specified by:
retrieveLocalStatein interfaceTaskLocalStateStore- Parameters:
checkpointID- the checkpoint id by which we search for local state.- Returns:
- the local state found for the given checkpoint id. Can be null
-
confirmCheckpoint
public void confirmCheckpoint(long confirmedCheckpointId) Description copied from interface:TaskLocalStateStoreNotifies that the checkpoint with the given id was confirmed as complete. This prunes the checkpoint history and removes all local states with a checkpoint id that is smaller than the newly confirmed checkpoint id.- Specified by:
confirmCheckpointin interfaceTaskLocalStateStore
-
abortCheckpoint
public void abortCheckpoint(long abortedCheckpointId) Description copied from interface:TaskLocalStateStoreNotifies that the checkpoint with the given id was confirmed as aborted. This prunes the checkpoint history and removes states with a checkpoint id that is equal to the newly aborted checkpoint id.- Specified by:
abortCheckpointin interfaceTaskLocalStateStore
-
pruneMatchingCheckpoints
Description copied from interface:TaskLocalStateStoreRemove all checkpoints from the store that match the given predicate.- Specified by:
pruneMatchingCheckpointsin interfaceTaskLocalStateStore- Parameters:
matcher- the predicate that selects the checkpoints for pruning.
-