K - type of the backend keys.public class RocksIncrementalSnapshotStrategy<K> extends RocksDBSnapshotStrategyBase<K>
RocksDBKeyedStateBackend that is based
on RocksDB's native checkpoints and creates incremental snapshots.cancelStreamRegistry, 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,
long lastCompletedCheckpointId,
int numberOfTransferingThreads) |
| Modifier and Type | Method and Description |
|---|---|
protected RunnableFuture<org.apache.flink.runtime.state.SnapshotResult<org.apache.flink.runtime.state.KeyedStateHandle>> |
doSnapshot(long checkpointId,
long checkpointTimestamp,
org.apache.flink.runtime.state.CheckpointStreamFactory checkpointStreamFactory,
org.apache.flink.runtime.checkpoint.CheckpointOptions checkpointOptions)
This method implements the concrete snapshot logic for a non-empty state.
|
void |
notifyCheckpointAborted(long abortedCheckpointId) |
void |
notifyCheckpointComplete(long completedCheckpointId) |
snapshotpublic 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, long lastCompletedCheckpointId, int numberOfTransferingThreads)
@Nonnull protected RunnableFuture<org.apache.flink.runtime.state.SnapshotResult<org.apache.flink.runtime.state.KeyedStateHandle>> doSnapshot(long checkpointId, long checkpointTimestamp, @Nonnull org.apache.flink.runtime.state.CheckpointStreamFactory checkpointStreamFactory, @Nonnull org.apache.flink.runtime.checkpoint.CheckpointOptions checkpointOptions) throws Exception
RocksDBSnapshotStrategyBasedoSnapshot in class RocksDBSnapshotStrategyBase<K>Exceptionpublic void notifyCheckpointComplete(long completedCheckpointId)
public void notifyCheckpointAborted(long abortedCheckpointId)
Copyright © 2014–2020 The Apache Software Foundation. All rights reserved.