K - type of the backend keys.public class RocksFullSnapshotStrategy<K> extends RocksDBSnapshotStrategyBase<K,org.apache.flink.runtime.state.FullSnapshotResources<K>>
RocksDBKeyedStateBackend. Iterates and writes all
states from a RocksDB snapshot of the column families.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,
LinkedHashMap<String,org.apache.flink.runtime.state.heap.HeapPriorityQueueSnapshotRestoreWrapper<?>> registeredPQStates,
org.apache.flink.runtime.state.KeyGroupRange keyGroupRange,
int keyGroupPrefixBytes,
org.apache.flink.runtime.state.LocalRecoveryConfig localRecoveryConfig,
org.apache.flink.runtime.state.StreamCompressionDecorator keyGroupCompressionDecorator) |
| Modifier and Type | Method and Description |
|---|---|
org.apache.flink.runtime.state.SnapshotStrategy.SnapshotResultSupplier<org.apache.flink.runtime.state.KeyedStateHandle> |
asyncSnapshot(org.apache.flink.runtime.state.FullSnapshotResources<K> fullRocksDBSnapshotResources,
long checkpointId,
long timestamp,
org.apache.flink.runtime.state.CheckpointStreamFactory checkpointStreamFactory,
org.apache.flink.runtime.checkpoint.CheckpointOptions checkpointOptions) |
void |
notifyCheckpointAborted(long checkpointId) |
void |
notifyCheckpointComplete(long checkpointId) |
org.apache.flink.runtime.state.FullSnapshotResources<K> |
syncPrepareResources(long checkpointId) |
getDescriptionpublic 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 LinkedHashMap<String,org.apache.flink.runtime.state.heap.HeapPriorityQueueSnapshotRestoreWrapper<?>> registeredPQStates, @Nonnull org.apache.flink.runtime.state.KeyGroupRange keyGroupRange, @Nonnegative int keyGroupPrefixBytes, @Nonnull org.apache.flink.runtime.state.LocalRecoveryConfig localRecoveryConfig, @Nonnull org.apache.flink.runtime.state.StreamCompressionDecorator keyGroupCompressionDecorator)
public org.apache.flink.runtime.state.FullSnapshotResources<K> syncPrepareResources(long checkpointId) throws Exception
Exceptionpublic org.apache.flink.runtime.state.SnapshotStrategy.SnapshotResultSupplier<org.apache.flink.runtime.state.KeyedStateHandle> asyncSnapshot(org.apache.flink.runtime.state.FullSnapshotResources<K> fullRocksDBSnapshotResources, long checkpointId, long timestamp, @Nonnull org.apache.flink.runtime.state.CheckpointStreamFactory checkpointStreamFactory, @Nonnull org.apache.flink.runtime.checkpoint.CheckpointOptions checkpointOptions)
public void notifyCheckpointComplete(long checkpointId)
public void notifyCheckpointAborted(long checkpointId)
Copyright © 2014–2021 The Apache Software Foundation. All rights reserved.