Class ForStPriorityQueueConfig
java.lang.Object
org.apache.flink.state.forst.sync.ForStPriorityQueueConfig
- All Implemented Interfaces:
Serializable
The configuration of rocksDB priority queue state implementation.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionForStPriorityQueueConfig(ForStStateBackend.PriorityQueueStateType priorityQueueStateType, int rocksDBPriorityQueueSetCacheSize) -
Method Summary
Modifier and TypeMethodDescriptionstatic ForStPriorityQueueConfigstatic ForStPriorityQueueConfigfromOtherAndConfiguration(ForStPriorityQueueConfig other, org.apache.flink.configuration.ReadableConfig config) Gets the type of the priority queue state.intGets the cache size of rocksDB priority queue set.void
-
Constructor Details
-
ForStPriorityQueueConfig
public ForStPriorityQueueConfig() -
ForStPriorityQueueConfig
public ForStPriorityQueueConfig(ForStStateBackend.PriorityQueueStateType priorityQueueStateType, int rocksDBPriorityQueueSetCacheSize)
-
-
Method Details
-
getPriorityQueueStateType
Gets the type of the priority queue state. It will fall back to the default value if it is not explicitly set. -
setPriorityQueueStateType
-
getRocksDBPriorityQueueSetCacheSize
public int getRocksDBPriorityQueueSetCacheSize()Gets the cache size of rocksDB priority queue set. It will fall back to the default value if it is not explicitly set. -
fromOtherAndConfiguration
public static ForStPriorityQueueConfig fromOtherAndConfiguration(ForStPriorityQueueConfig other, org.apache.flink.configuration.ReadableConfig config) -
buildWithPriorityQueueType
public static ForStPriorityQueueConfig buildWithPriorityQueueType(ForStStateBackend.PriorityQueueStateType type)
-