Class RocksDBFullSnapshotResources<K>
java.lang.Object
org.apache.flink.state.rocksdb.snapshot.RocksDBFullSnapshotResources<K>
- All Implemented Interfaces:
org.apache.flink.runtime.state.FullSnapshotResources<K>,org.apache.flink.runtime.state.SnapshotResources
public class RocksDBFullSnapshotResources<K>
extends Object
implements org.apache.flink.runtime.state.FullSnapshotResources<K>
A
FullSnapshotResources for the RocksDB backend.-
Constructor Summary
ConstructorsConstructorDescriptionRocksDBFullSnapshotResources(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) -
Method Summary
Modifier and TypeMethodDescriptionstatic <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.KeyValueStateIteratororg.apache.flink.runtime.state.KeyGroupRangeorg.apache.flink.api.common.typeutils.TypeSerializer<K>List<org.apache.flink.runtime.state.metainfo.StateMetaInfoSnapshot>org.apache.flink.runtime.state.StreamCompressionDecoratorvoidrelease()
-
Constructor Details
-
RocksDBFullSnapshotResources
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)
-
-
Method Details
-
create
public static <K> RocksDBFullSnapshotResources<K> create(LinkedHashMap<String, RocksDBKeyedStateBackend.RocksDbKvStateInfo> kvStateInformation, Map<String, throws IOExceptionorg.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
-
createKVStateIterator
public org.apache.flink.runtime.state.KeyValueStateIterator createKVStateIterator() throws IOException- Specified by:
createKVStateIteratorin interfaceorg.apache.flink.runtime.state.FullSnapshotResources<K>- Throws:
IOException
-
getMetaInfoSnapshots
- Specified by:
getMetaInfoSnapshotsin interfaceorg.apache.flink.runtime.state.FullSnapshotResources<K>
-
getKeyGroupRange
public org.apache.flink.runtime.state.KeyGroupRange getKeyGroupRange()- Specified by:
getKeyGroupRangein interfaceorg.apache.flink.runtime.state.FullSnapshotResources<K>
-
getKeySerializer
- Specified by:
getKeySerializerin interfaceorg.apache.flink.runtime.state.FullSnapshotResources<K>
-
getStreamCompressionDecorator
public org.apache.flink.runtime.state.StreamCompressionDecorator getStreamCompressionDecorator()- Specified by:
getStreamCompressionDecoratorin interfaceorg.apache.flink.runtime.state.FullSnapshotResources<K>
-
release
public void release()- Specified by:
releasein interfaceorg.apache.flink.runtime.state.SnapshotResources
-