protected abstract class RocksDBSnapshotStrategyBase.RocksDBSnapshotOperation extends Object implements org.apache.flink.runtime.state.SnapshotStrategy.SnapshotResultSupplier<org.apache.flink.runtime.state.KeyedStateHandle>
| Modifier and Type | Field and Description |
|---|---|
protected long |
checkpointId
Id for the current checkpoint.
|
protected org.apache.flink.runtime.state.CheckpointStreamFactory |
checkpointStreamFactory
Stream factory that creates the output streams to DFS.
|
protected org.apache.flink.runtime.state.SnapshotDirectory |
localBackupDirectory
Local directory for the RocksDB native backup.
|
protected List<org.apache.flink.runtime.state.metainfo.StateMetaInfoSnapshot> |
stateMetaInfoSnapshots
The state meta data.
|
protected org.apache.flink.core.fs.CloseableRegistry |
tmpResourcesRegistry |
| Modifier | Constructor and 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) |
| Modifier and Type | Method and 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) |
protected final long checkpointId
@Nonnull protected final org.apache.flink.runtime.state.CheckpointStreamFactory checkpointStreamFactory
@Nonnull protected final List<org.apache.flink.runtime.state.metainfo.StateMetaInfoSnapshot> stateMetaInfoSnapshots
@Nonnull protected final org.apache.flink.runtime.state.SnapshotDirectory localBackupDirectory
@Nonnull protected final org.apache.flink.core.fs.CloseableRegistry tmpResourcesRegistry
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)
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
IOExceptionCopyright © 2014–2025 The Apache Software Foundation. All rights reserved.