Package org.apache.flink.state.rocksdb
Class RocksDBPriorityQueueSetFactory
java.lang.Object
org.apache.flink.state.rocksdb.RocksDBPriorityQueueSetFactory
- All Implemented Interfaces:
org.apache.flink.runtime.state.PriorityQueueSetFactory
public class RocksDBPriorityQueueSetFactory
extends Object
implements org.apache.flink.runtime.state.PriorityQueueSetFactory
Encapsulates the logic and resources in connection with creating priority queue state structures,
for RocksDB backend.
-
Method Summary
Modifier and TypeMethodDescription<T extends org.apache.flink.runtime.state.heap.HeapPriorityQueueElement & org.apache.flink.runtime.state.PriorityComparable<? super T> & org.apache.flink.runtime.state.Keyed<?>>
org.apache.flink.runtime.state.KeyGroupedInternalPriorityQueue<T>create(String stateName, org.apache.flink.api.common.typeutils.TypeSerializer<T> byteOrderedElementSerializer) <T extends org.apache.flink.runtime.state.heap.HeapPriorityQueueElement & org.apache.flink.runtime.state.PriorityComparable<? super T> & org.apache.flink.runtime.state.Keyed<?>>
org.apache.flink.runtime.state.KeyGroupedInternalPriorityQueue<T>create(String stateName, org.apache.flink.api.common.typeutils.TypeSerializer<T> byteOrderedElementSerializer, boolean allowFutureMetadataUpdates) int
-
Method Details
-
create
@Nonnull public <T extends org.apache.flink.runtime.state.heap.HeapPriorityQueueElement & org.apache.flink.runtime.state.PriorityComparable<? super T> & org.apache.flink.runtime.state.Keyed<?>> org.apache.flink.runtime.state.KeyGroupedInternalPriorityQueue<T> create(@Nonnull String stateName, @Nonnull org.apache.flink.api.common.typeutils.TypeSerializer<T> byteOrderedElementSerializer) - Specified by:
createin interfaceorg.apache.flink.runtime.state.PriorityQueueSetFactory
-
create
@Nonnull public <T extends org.apache.flink.runtime.state.heap.HeapPriorityQueueElement & org.apache.flink.runtime.state.PriorityComparable<? super T> & org.apache.flink.runtime.state.Keyed<?>> org.apache.flink.runtime.state.KeyGroupedInternalPriorityQueue<T> create(@Nonnull String stateName, @Nonnull org.apache.flink.api.common.typeutils.TypeSerializer<T> byteOrderedElementSerializer, boolean allowFutureMetadataUpdates) - Specified by:
createin interfaceorg.apache.flink.runtime.state.PriorityQueueSetFactory
-
getCacheSize
@VisibleForTesting public int getCacheSize()
-