K - type of the backend keys.public class RocksFullSnapshotStrategy<K> extends RocksDBSnapshotStrategyBase<K>
RocksDBKeyedStateBackend. Iterates and writes all states from a
RocksDB snapshot of the column families.cancelStreamRegistry, db, keyGroupPrefixBytes, keyGroupRange, keySerializer, kvStateInformation, localRecoveryConfig, rocksDBResourceGuard| Constructor and Description |
|---|
RocksFullSnapshotStrategy(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,
org.apache.flink.runtime.state.StreamCompressionDecorator keyGroupCompressionDecorator) |
| Modifier and Type | Method and Description |
|---|---|
RunnableFuture<org.apache.flink.runtime.state.SnapshotResult<org.apache.flink.runtime.state.KeyedStateHandle>> |
doSnapshot(long checkpointId,
long timestamp,
org.apache.flink.runtime.state.CheckpointStreamFactory primaryStreamFactory,
org.apache.flink.runtime.checkpoint.CheckpointOptions checkpointOptions)
This method implements the concrete snapshot logic for a non-empty state.
|
void |
notifyCheckpointAborted(long checkpointId) |
void |
notifyCheckpointComplete(long checkpointId) |
snapshotpublic RocksFullSnapshotStrategy(@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 org.apache.flink.runtime.state.StreamCompressionDecorator keyGroupCompressionDecorator)
@Nonnull public RunnableFuture<org.apache.flink.runtime.state.SnapshotResult<org.apache.flink.runtime.state.KeyedStateHandle>> doSnapshot(long checkpointId, long timestamp, @Nonnull org.apache.flink.runtime.state.CheckpointStreamFactory primaryStreamFactory, @Nonnull org.apache.flink.runtime.checkpoint.CheckpointOptions checkpointOptions) throws Exception
RocksDBSnapshotStrategyBasedoSnapshot in class RocksDBSnapshotStrategyBase<K>Exceptionpublic void notifyCheckpointComplete(long checkpointId)
public void notifyCheckpointAborted(long checkpointId)
Copyright © 2014–2020 The Apache Software Foundation. All rights reserved.