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
FieldsModifier and TypeFieldDescriptionprotected final longId for the current checkpoint.protected final org.apache.flink.runtime.state.CheckpointStreamFactoryStream factory that creates the output streams to DFS.protected final org.apache.flink.runtime.state.SnapshotDirectoryLocal 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
ConstructorsModifierConstructorDescriptionprotectedRocksDBSnapshotOperation(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 TypeMethodDescriptionprotected 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, waitMethods inherited from interface org.apache.flink.runtime.state.SnapshotStrategy.SnapshotResultSupplier
get
-
Field Details
-
checkpointId
protected final long checkpointIdId for the current checkpoint. -
checkpointStreamFactory
@Nonnull protected final org.apache.flink.runtime.state.CheckpointStreamFactory checkpointStreamFactoryStream factory that creates the output streams to DFS. -
stateMetaInfoSnapshots
@Nonnull protected final List<org.apache.flink.runtime.state.metainfo.StateMetaInfoSnapshot> stateMetaInfoSnapshotsThe state meta data. -
localBackupDirectory
@Nonnull protected final org.apache.flink.runtime.state.SnapshotDirectory localBackupDirectoryLocal 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
-