public class RocksDBFullSnapshotResources<K> extends Object implements org.apache.flink.runtime.state.FullSnapshotResources<K>
FullSnapshotResources for the RocksDB backend.| Constructor and Description |
|---|
RocksDBFullSnapshotResources(org.apache.flink.util.ResourceGuard.Lease lease,
org.rocksdb.Snapshot snapshot,
List<RocksDBKeyedStateBackend.RocksDbKvStateInfo> metaDataCopy,
List<org.apache.flink.runtime.state.heap.HeapPriorityQueueStateSnapshot<?>> heapPriorityQueuesSnapshots,
List<org.apache.flink.runtime.state.metainfo.StateMetaInfoSnapshot> stateMetaInfoSnapshots,
org.rocksdb.RocksDB db,
int keyGroupPrefixBytes,
org.apache.flink.runtime.state.KeyGroupRange keyGroupRange,
org.apache.flink.api.common.typeutils.TypeSerializer<K> keySerializer,
org.apache.flink.runtime.state.StreamCompressionDecorator streamCompressionDecorator) |
| Modifier and Type | Method and Description |
|---|---|
static <K> RocksDBFullSnapshotResources<K> |
create(LinkedHashMap<String,RocksDBKeyedStateBackend.RocksDbKvStateInfo> kvStateInformation,
Map<String,org.apache.flink.runtime.state.heap.HeapPriorityQueueSnapshotRestoreWrapper<?>> registeredPQStates,
org.rocksdb.RocksDB db,
org.apache.flink.util.ResourceGuard rocksDBResourceGuard,
org.apache.flink.runtime.state.KeyGroupRange keyGroupRange,
org.apache.flink.api.common.typeutils.TypeSerializer<K> keySerializer,
int keyGroupPrefixBytes,
org.apache.flink.runtime.state.StreamCompressionDecorator keyGroupCompressionDecorator) |
org.apache.flink.runtime.state.KeyValueStateIterator |
createKVStateIterator() |
org.apache.flink.runtime.state.KeyGroupRange |
getKeyGroupRange() |
org.apache.flink.api.common.typeutils.TypeSerializer<K> |
getKeySerializer() |
List<org.apache.flink.runtime.state.metainfo.StateMetaInfoSnapshot> |
getMetaInfoSnapshots() |
org.apache.flink.runtime.state.StreamCompressionDecorator |
getStreamCompressionDecorator() |
void |
release() |
public RocksDBFullSnapshotResources(org.apache.flink.util.ResourceGuard.Lease lease,
org.rocksdb.Snapshot snapshot,
List<RocksDBKeyedStateBackend.RocksDbKvStateInfo> metaDataCopy,
List<org.apache.flink.runtime.state.heap.HeapPriorityQueueStateSnapshot<?>> heapPriorityQueuesSnapshots,
List<org.apache.flink.runtime.state.metainfo.StateMetaInfoSnapshot> stateMetaInfoSnapshots,
org.rocksdb.RocksDB db,
int keyGroupPrefixBytes,
org.apache.flink.runtime.state.KeyGroupRange keyGroupRange,
org.apache.flink.api.common.typeutils.TypeSerializer<K> keySerializer,
org.apache.flink.runtime.state.StreamCompressionDecorator streamCompressionDecorator)
public static <K> RocksDBFullSnapshotResources<K> create(LinkedHashMap<String,RocksDBKeyedStateBackend.RocksDbKvStateInfo> kvStateInformation, Map<String,org.apache.flink.runtime.state.heap.HeapPriorityQueueSnapshotRestoreWrapper<?>> registeredPQStates, org.rocksdb.RocksDB db, org.apache.flink.util.ResourceGuard rocksDBResourceGuard, org.apache.flink.runtime.state.KeyGroupRange keyGroupRange, org.apache.flink.api.common.typeutils.TypeSerializer<K> keySerializer, int keyGroupPrefixBytes, org.apache.flink.runtime.state.StreamCompressionDecorator keyGroupCompressionDecorator) throws IOException
IOExceptionpublic org.apache.flink.runtime.state.KeyValueStateIterator createKVStateIterator()
throws IOException
createKVStateIterator in interface org.apache.flink.runtime.state.FullSnapshotResources<K>IOExceptionpublic List<org.apache.flink.runtime.state.metainfo.StateMetaInfoSnapshot> getMetaInfoSnapshots()
getMetaInfoSnapshots in interface org.apache.flink.runtime.state.FullSnapshotResources<K>public org.apache.flink.runtime.state.KeyGroupRange getKeyGroupRange()
getKeyGroupRange in interface org.apache.flink.runtime.state.FullSnapshotResources<K>public org.apache.flink.api.common.typeutils.TypeSerializer<K> getKeySerializer()
getKeySerializer in interface org.apache.flink.runtime.state.FullSnapshotResources<K>public org.apache.flink.runtime.state.StreamCompressionDecorator getStreamCompressionDecorator()
getStreamCompressionDecorator in interface org.apache.flink.runtime.state.FullSnapshotResources<K>public void release()
release in interface org.apache.flink.runtime.state.SnapshotResourcesCopyright © 2014–2022 The Apache Software Foundation. All rights reserved.