Class RocksDBFullSnapshotResources<K>
- java.lang.Object
-
- org.apache.flink.contrib.streaming.state.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>
AFullSnapshotResourcesfor the RocksDB backend.
-
-
Constructor Summary
Constructors Constructor 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)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method 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.KeyValueStateIteratorcreateKVStateIterator()org.apache.flink.runtime.state.KeyGroupRangegetKeyGroupRange()org.apache.flink.api.common.typeutils.TypeSerializer<K>getKeySerializer()List<org.apache.flink.runtime.state.metainfo.StateMetaInfoSnapshot>getMetaInfoSnapshots()org.apache.flink.runtime.state.StreamCompressionDecoratorgetStreamCompressionDecorator()voidrelease()
-
-
-
Constructor Detail
-
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 Detail
-
create
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
- 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
public List<org.apache.flink.runtime.state.metainfo.StateMetaInfoSnapshot> 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
public org.apache.flink.api.common.typeutils.TypeSerializer<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
-
-