K - type of the backend keys.public abstract class RocksDBSnapshotStrategyBase<K,R extends org.apache.flink.runtime.state.SnapshotResources> extends Object implements org.apache.flink.api.common.state.CheckpointListener, org.apache.flink.runtime.state.SnapshotStrategy<org.apache.flink.runtime.state.KeyedStateHandle,R>, AutoCloseable
SnapshotStrategy implementations for RocksDB state backend.| Modifier and Type | Field and Description |
|---|---|
protected org.rocksdb.RocksDB |
db
RocksDB instance from the backend.
|
protected int |
keyGroupPrefixBytes
Number of bytes in the key-group prefix.
|
protected org.apache.flink.runtime.state.KeyGroupRange |
keyGroupRange
The key-group range for the task.
|
protected org.apache.flink.api.common.typeutils.TypeSerializer<K> |
keySerializer
The key serializer of the backend.
|
protected LinkedHashMap<String,RocksDBKeyedStateBackend.RocksDbKvStateInfo> |
kvStateInformation
Key/Value state meta info from the backend.
|
protected org.apache.flink.runtime.state.LocalRecoveryConfig |
localRecoveryConfig
The configuration for local recovery.
|
protected org.apache.flink.util.ResourceGuard |
rocksDBResourceGuard
Resource guard for the RocksDB instance.
|
| Constructor and Description |
|---|
RocksDBSnapshotStrategyBase(String description,
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) |
| Modifier and Type | Method and Description |
|---|---|
abstract void |
close() |
String |
getDescription() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait@Nonnull protected org.rocksdb.RocksDB db
@Nonnull protected final org.apache.flink.util.ResourceGuard rocksDBResourceGuard
@Nonnull protected final org.apache.flink.api.common.typeutils.TypeSerializer<K> keySerializer
@Nonnull protected final LinkedHashMap<String,RocksDBKeyedStateBackend.RocksDbKvStateInfo> kvStateInformation
@Nonnull protected final org.apache.flink.runtime.state.KeyGroupRange keyGroupRange
@Nonnegative protected final int keyGroupPrefixBytes
@Nonnull protected final org.apache.flink.runtime.state.LocalRecoveryConfig localRecoveryConfig
public RocksDBSnapshotStrategyBase(@Nonnull String description, @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)
public abstract void close()
close in interface AutoCloseableCopyright © 2014–2021 The Apache Software Foundation. All rights reserved.