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| 构造器和说明 |
|---|
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) |
| 限定符和类型 | 方法和说明 |
|---|---|
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 |
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 在类中 RocksDBSnapshotStrategyBase<K>Exceptionpublic void notifyCheckpointComplete(long completedCheckpointId)
Copyright © 2014–2019 The Apache Software Foundation. All rights reserved.