Class NoOpTaskLocalStateStoreImpl

java.lang.Object
org.apache.flink.runtime.state.NoOpTaskLocalStateStoreImpl
All Implemented Interfaces:
OwnedTaskLocalStateStore, TaskLocalStateStore

public final class NoOpTaskLocalStateStoreImpl extends Object implements OwnedTaskLocalStateStore
This class implements a TaskLocalStateStore with no functionality and is used when local recovery is disabled.
  • Method Details

    • getLocalRecoveryConfig

      @Nonnull public LocalRecoveryConfig getLocalRecoveryConfig()
      Description copied from interface: TaskLocalStateStore
      Returns the LocalRecoveryConfig for this task local state store.
      Specified by:
      getLocalRecoveryConfig in interface TaskLocalStateStore
    • dispose

      public CompletableFuture<Void> dispose()
      Description copied from interface: OwnedTaskLocalStateStore
      Disposes the task local state store. Disposal can happen asynchronously and completion is signaled through the returned future.
      Specified by:
      dispose in interface OwnedTaskLocalStateStore
    • storeLocalState

      public void storeLocalState(long checkpointId, @Nullable TaskStateSnapshot localState)
      Description copied from interface: TaskLocalStateStore
      Stores the local state for the given checkpoint id.
      Specified by:
      storeLocalState in interface TaskLocalStateStore
      Parameters:
      checkpointId - id for the checkpoint that created the local state that will be stored.
      localState - the local state to store.
    • retrieveLocalState

      @Nullable public TaskStateSnapshot retrieveLocalState(long checkpointID)
      Description copied from interface: TaskLocalStateStore
      Returns the local state that is stored under the given checkpoint id or null if nothing was stored under the id.
      Specified by:
      retrieveLocalState in interface TaskLocalStateStore
      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: TaskLocalStateStore
      Notifies 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:
      confirmCheckpoint in interface TaskLocalStateStore
    • abortCheckpoint

      public void abortCheckpoint(long abortedCheckpointId)
      Description copied from interface: TaskLocalStateStore
      Notifies 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:
      abortCheckpoint in interface TaskLocalStateStore
    • pruneMatchingCheckpoints

      public void pruneMatchingCheckpoints(LongPredicate matcher)
      Description copied from interface: TaskLocalStateStore
      Remove all checkpoints from the store that match the given predicate.
      Specified by:
      pruneMatchingCheckpoints in interface TaskLocalStateStore
      Parameters:
      matcher - the predicate that selects the checkpoints for pruning.