K - type of the backend keys.public class RocksIncrementalSnapshotStrategy<K> extends RocksDBSnapshotStrategyBase<K,org.apache.flink.contrib.streaming.state.snapshot.RocksIncrementalSnapshotStrategy.IncrementalRocksDBSnapshotResources>
RocksDBKeyedStateBackend
that is based on RocksDB's native checkpoints and creates incremental snapshots.db, keyGroupPrefixBytes, keyGroupRange, keySerializer, kvStateInformation, localRecoveryConfig, rocksDBResourceGuard| Constructor and Description |
|---|
RocksIncrementalSnapshotStrategy(org.rocksdb.RocksDB db,
org.apache.flink.util.ResourceGuard rocksDBResourceGuard,
org.apache.flink.api.common.typeutils.TypeSerializer<K> keySerializer,
LinkedHashMap<String,RocksDBKeyedStateBackend.RocksDbKvStateInfo> kvStateInformation,
org.apache.flink.runtime.state.KeyGroupRange keyGroupRange,
int keyGroupPrefixBytes,
org.apache.flink.runtime.state.LocalRecoveryConfig localRecoveryConfig,
org.apache.flink.core.fs.CloseableRegistry cancelStreamRegistry,
File instanceBasePath,
UUID backendUID,
SortedMap<Long,Set<org.apache.flink.runtime.state.StateHandleID>> materializedSstFiles,
RocksDBStateUploader rocksDBStateUploader,
long lastCompletedCheckpointId) |
| Modifier and Type | Method and Description |
|---|---|
org.apache.flink.runtime.state.SnapshotStrategy.SnapshotResultSupplier<org.apache.flink.runtime.state.KeyedStateHandle> |
asyncSnapshot(org.apache.flink.contrib.streaming.state.snapshot.RocksIncrementalSnapshotStrategy.IncrementalRocksDBSnapshotResources snapshotResources,
long checkpointId,
long timestamp,
org.apache.flink.runtime.state.CheckpointStreamFactory checkpointStreamFactory,
org.apache.flink.runtime.checkpoint.CheckpointOptions checkpointOptions) |
void |
close() |
void |
notifyCheckpointAborted(long abortedCheckpointId) |
void |
notifyCheckpointComplete(long completedCheckpointId) |
org.apache.flink.contrib.streaming.state.snapshot.RocksIncrementalSnapshotStrategy.IncrementalRocksDBSnapshotResources |
syncPrepareResources(long checkpointId) |
getDescriptionpublic RocksIncrementalSnapshotStrategy(@Nonnull org.rocksdb.RocksDB db, @Nonnull org.apache.flink.util.ResourceGuard rocksDBResourceGuard, @Nonnull org.apache.flink.api.common.typeutils.TypeSerializer<K> keySerializer, @Nonnull LinkedHashMap<String,RocksDBKeyedStateBackend.RocksDbKvStateInfo> kvStateInformation, @Nonnull org.apache.flink.runtime.state.KeyGroupRange keyGroupRange, @Nonnegative int keyGroupPrefixBytes, @Nonnull org.apache.flink.runtime.state.LocalRecoveryConfig localRecoveryConfig, @Nonnull org.apache.flink.core.fs.CloseableRegistry cancelStreamRegistry, @Nonnull File instanceBasePath, @Nonnull UUID backendUID, @Nonnull SortedMap<Long,Set<org.apache.flink.runtime.state.StateHandleID>> materializedSstFiles, @Nonnull RocksDBStateUploader rocksDBStateUploader, long lastCompletedCheckpointId)
public org.apache.flink.contrib.streaming.state.snapshot.RocksIncrementalSnapshotStrategy.IncrementalRocksDBSnapshotResources syncPrepareResources(long checkpointId)
throws Exception
Exceptionpublic org.apache.flink.runtime.state.SnapshotStrategy.SnapshotResultSupplier<org.apache.flink.runtime.state.KeyedStateHandle> asyncSnapshot(org.apache.flink.contrib.streaming.state.snapshot.RocksIncrementalSnapshotStrategy.IncrementalRocksDBSnapshotResources snapshotResources,
long checkpointId,
long timestamp,
@Nonnull
org.apache.flink.runtime.state.CheckpointStreamFactory checkpointStreamFactory,
@Nonnull
org.apache.flink.runtime.checkpoint.CheckpointOptions checkpointOptions)
public void notifyCheckpointComplete(long completedCheckpointId)
public void notifyCheckpointAborted(long abortedCheckpointId)
public void close()
close in interface AutoCloseableclose in class RocksDBSnapshotStrategyBase<K,org.apache.flink.contrib.streaming.state.snapshot.RocksIncrementalSnapshotStrategy.IncrementalRocksDBSnapshotResources>Copyright © 2014–2021 The Apache Software Foundation. All rights reserved.