Class ForStIncrementalSnapshotStrategy<K>
java.lang.Object
org.apache.flink.state.forst.snapshot.ForStSnapshotStrategyBase<K,ForStSnapshotStrategyBase.ForStNativeSnapshotResources>
org.apache.flink.state.forst.snapshot.ForStNativeFullSnapshotStrategy<K>
org.apache.flink.state.forst.snapshot.ForStIncrementalSnapshotStrategy<K>
- Type Parameters:
K- type of the backend keys.
- All Implemented Interfaces:
AutoCloseable,org.apache.flink.api.common.state.CheckpointListener,org.apache.flink.runtime.state.SnapshotStrategy<org.apache.flink.runtime.state.KeyedStateHandle,ForStSnapshotStrategyBase.ForStNativeSnapshotResources>
Snapshot strategy for
ForStKeyedStateBackend that is based
on disableFileDeletions()+getLiveFiles() of ForSt and creates incremental snapshots.-
Nested Class Summary
Nested classes/interfaces inherited from class org.apache.flink.state.forst.snapshot.ForStSnapshotStrategyBase
ForStSnapshotStrategyBase.ForStNativeSnapshotResources, ForStSnapshotStrategyBase.ForStSnapshotOperation, ForStSnapshotStrategyBase.ForStSyncSnapshotResources, ForStSnapshotStrategyBase.PreviousSnapshotNested classes/interfaces inherited from interface org.apache.flink.runtime.state.SnapshotStrategy
org.apache.flink.runtime.state.SnapshotStrategy.SnapshotResultSupplier<S extends org.apache.flink.runtime.state.StateObject> -
Field Summary
Fields inherited from class org.apache.flink.state.forst.snapshot.ForStNativeFullSnapshotStrategy
stateTransferFields inherited from class org.apache.flink.state.forst.snapshot.ForStSnapshotStrategyBase
backendUID, db, EMPTY_PREVIOUS_SNAPSHOT, keyGroupPrefixBytes, keyGroupRange, keySerializer, kvStateInformation, resourceContainer, resourceGuard -
Constructor Summary
ConstructorsConstructorDescriptionForStIncrementalSnapshotStrategy(org.forstdb.RocksDB db, org.apache.flink.util.ResourceGuard forstResourceGuard, ForStResourceContainer resourceContainer, org.apache.flink.api.common.typeutils.TypeSerializer<K> keySerializer, LinkedHashMap<String, ForStOperationUtils.ForStKvStateInfo> kvStateInformation, org.apache.flink.runtime.state.KeyGroupRange keyGroupRange, int keyGroupPrefixBytes, UUID backendUID, SortedMap<Long, Collection<org.apache.flink.runtime.state.IncrementalKeyedStateHandle.HandleAndLocalPath>> uploadedStateHandles, ForStStateDataTransfer stateTransfer, long lastCompletedCheckpointId) -
Method Summary
Modifier and TypeMethodDescriptionorg.apache.flink.runtime.state.SnapshotStrategy.SnapshotResultSupplier<org.apache.flink.runtime.state.KeyedStateHandle>asyncSnapshot(ForStSnapshotStrategyBase.ForStNativeSnapshotResources snapshotResources, long checkpointId, long timestamp, org.apache.flink.runtime.state.CheckpointStreamFactory checkpointStreamFactory, org.apache.flink.runtime.checkpoint.CheckpointOptions checkpointOptions) voidclose()voidnotifyCheckpointAborted(long abortedCheckpointId) voidnotifyCheckpointComplete(long completedCheckpointId) snapshotMetaData(long checkpointId, List<org.apache.flink.runtime.state.metainfo.StateMetaInfoSnapshot> stateMetaInfoSnapshots) Methods inherited from class org.apache.flink.state.forst.snapshot.ForStNativeFullSnapshotStrategy
syncPrepareResourcesMethods inherited from class org.apache.flink.state.forst.snapshot.ForStSnapshotStrategyBase
cleanupIncompleteSnapshot, getDescription, materializeMetaData
-
Constructor Details
-
ForStIncrementalSnapshotStrategy
public ForStIncrementalSnapshotStrategy(@Nonnull org.forstdb.RocksDB db, @Nonnull org.apache.flink.util.ResourceGuard forstResourceGuard, @Nonnull ForStResourceContainer resourceContainer, @Nonnull org.apache.flink.api.common.typeutils.TypeSerializer<K> keySerializer, @Nonnull LinkedHashMap<String, ForStOperationUtils.ForStKvStateInfo> kvStateInformation, @Nonnull org.apache.flink.runtime.state.KeyGroupRange keyGroupRange, @Nonnegative int keyGroupPrefixBytes, @Nonnull UUID backendUID, @Nonnull SortedMap<Long, Collection<org.apache.flink.runtime.state.IncrementalKeyedStateHandle.HandleAndLocalPath>> uploadedStateHandles, @Nonnull ForStStateDataTransfer stateTransfer, long lastCompletedCheckpointId)
-
-
Method Details
-
asyncSnapshot
public org.apache.flink.runtime.state.SnapshotStrategy.SnapshotResultSupplier<org.apache.flink.runtime.state.KeyedStateHandle> asyncSnapshot(ForStSnapshotStrategyBase.ForStNativeSnapshotResources snapshotResources, long checkpointId, long timestamp, @Nonnull org.apache.flink.runtime.state.CheckpointStreamFactory checkpointStreamFactory, @Nonnull org.apache.flink.runtime.checkpoint.CheckpointOptions checkpointOptions) - Specified by:
asyncSnapshotin interfaceorg.apache.flink.runtime.state.SnapshotStrategy<org.apache.flink.runtime.state.KeyedStateHandle,ForStSnapshotStrategyBase.ForStNativeSnapshotResources> - Overrides:
asyncSnapshotin classForStNativeFullSnapshotStrategy<K>
-
notifyCheckpointComplete
public void notifyCheckpointComplete(long completedCheckpointId) - Specified by:
notifyCheckpointCompletein interfaceorg.apache.flink.api.common.state.CheckpointListener- Overrides:
notifyCheckpointCompletein classForStNativeFullSnapshotStrategy<K>
-
notifyCheckpointAborted
public void notifyCheckpointAborted(long abortedCheckpointId) - Specified by:
notifyCheckpointAbortedin interfaceorg.apache.flink.api.common.state.CheckpointListener- Overrides:
notifyCheckpointAbortedin classForStNativeFullSnapshotStrategy<K>
-
close
public void close()- Specified by:
closein interfaceAutoCloseable- Overrides:
closein classForStNativeFullSnapshotStrategy<K>
-
snapshotMetaData
protected ForStSnapshotStrategyBase.PreviousSnapshot snapshotMetaData(long checkpointId, @Nonnull List<org.apache.flink.runtime.state.metainfo.StateMetaInfoSnapshot> stateMetaInfoSnapshots) - Overrides:
snapshotMetaDatain classForStNativeFullSnapshotStrategy<K>
-