Class RocksDBSnapshotStrategyBase.RocksDBSnapshotOperation

java.lang.Object
org.apache.flink.state.rocksdb.snapshot.RocksDBSnapshotStrategyBase.RocksDBSnapshotOperation
All Implemented Interfaces:
org.apache.flink.runtime.state.SnapshotStrategy.SnapshotResultSupplier<org.apache.flink.runtime.state.KeyedStateHandle>
Enclosing class:
RocksDBSnapshotStrategyBase<K,R extends org.apache.flink.runtime.state.SnapshotResources>

protected abstract class RocksDBSnapshotStrategyBase.RocksDBSnapshotOperation extends Object implements org.apache.flink.runtime.state.SnapshotStrategy.SnapshotResultSupplier<org.apache.flink.runtime.state.KeyedStateHandle>
Common operation in native rocksdb snapshot result supplier.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    protected final long
    Id for the current checkpoint.
    protected final org.apache.flink.runtime.state.CheckpointStreamFactory
    Stream factory that creates the output streams to DFS.
    protected final org.apache.flink.runtime.state.SnapshotDirectory
    Local directory for the RocksDB native backup.
    protected final List<org.apache.flink.runtime.state.metainfo.StateMetaInfoSnapshot>
    The state meta data.
    protected final org.apache.flink.core.fs.CloseableRegistry
     
  • Constructor Summary

    Constructors
    Modifier
    Constructor
    Description
    protected
    RocksDBSnapshotOperation(long checkpointId, org.apache.flink.runtime.state.CheckpointStreamFactory checkpointStreamFactory, org.apache.flink.runtime.state.SnapshotDirectory localBackupDirectory, List<org.apache.flink.runtime.state.metainfo.StateMetaInfoSnapshot> stateMetaInfoSnapshots)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected Optional<org.apache.flink.runtime.state.KeyedStateHandle>
    getLocalSnapshot(org.apache.flink.runtime.state.StreamStateHandle localStreamStateHandle, List<org.apache.flink.runtime.state.IncrementalKeyedStateHandle.HandleAndLocalPath> sharedState)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface org.apache.flink.runtime.state.SnapshotStrategy.SnapshotResultSupplier

    get
  • Field Details

    • checkpointId

      protected final long checkpointId
      Id for the current checkpoint.
    • checkpointStreamFactory

      @Nonnull protected final org.apache.flink.runtime.state.CheckpointStreamFactory checkpointStreamFactory
      Stream factory that creates the output streams to DFS.
    • stateMetaInfoSnapshots

      @Nonnull protected final List<org.apache.flink.runtime.state.metainfo.StateMetaInfoSnapshot> stateMetaInfoSnapshots
      The state meta data.
    • localBackupDirectory

      @Nonnull protected final org.apache.flink.runtime.state.SnapshotDirectory localBackupDirectory
      Local directory for the RocksDB native backup.
    • tmpResourcesRegistry

      @Nonnull protected final org.apache.flink.core.fs.CloseableRegistry tmpResourcesRegistry
  • Constructor Details

    • RocksDBSnapshotOperation

      protected RocksDBSnapshotOperation(long checkpointId, @Nonnull org.apache.flink.runtime.state.CheckpointStreamFactory checkpointStreamFactory, @Nonnull org.apache.flink.runtime.state.SnapshotDirectory localBackupDirectory, @Nonnull List<org.apache.flink.runtime.state.metainfo.StateMetaInfoSnapshot> stateMetaInfoSnapshots)
  • Method Details

    • getLocalSnapshot

      protected Optional<org.apache.flink.runtime.state.KeyedStateHandle> getLocalSnapshot(@Nullable org.apache.flink.runtime.state.StreamStateHandle localStreamStateHandle, List<org.apache.flink.runtime.state.IncrementalKeyedStateHandle.HandleAndLocalPath> sharedState) throws IOException
      Throws:
      IOException