Package org.apache.flink.state.rocksdb
Class RocksDBKeyedStateBackendBuilder<K>
- java.lang.Object
-
- org.apache.flink.runtime.state.AbstractKeyedStateBackendBuilder<K>
-
- org.apache.flink.state.rocksdb.RocksDBKeyedStateBackendBuilder<K>
-
- Type Parameters:
K
- The data type that the key serializer serializes.
- All Implemented Interfaces:
StateBackendBuilder<AbstractKeyedStateBackend<K>,BackendBuildingException>
public class RocksDBKeyedStateBackendBuilder<K> extends AbstractKeyedStateBackendBuilder<K>
Builder class forRocksDBKeyedStateBackend
which handles all necessary initializations and clean ups.
-
-
Field Summary
-
Fields inherited from class org.apache.flink.runtime.state.AbstractKeyedStateBackendBuilder
cancelStreamRegistry, executionConfig, keyGroupCompressionDecorator, keyGroupRange, keySerializerProvider, kvStateRegistry, latencyTrackingStateConfig, logger, numberOfKeyGroups, restoreStateHandles, ttlTimeProvider, userCodeClassLoader
-
-
Constructor Summary
Constructors Constructor Description RocksDBKeyedStateBackendBuilder(String operatorIdentifier, ClassLoader userCodeClassLoader, File instanceBasePath, RocksDBResourceContainer optionsContainer, Function<String,org.rocksdb.ColumnFamilyOptions> columnFamilyOptionsFactory, TaskKvStateRegistry kvStateRegistry, TypeSerializer<K> keySerializer, int numberOfKeyGroups, KeyGroupRange keyGroupRange, ExecutionConfig executionConfig, LocalRecoveryConfig localRecoveryConfig, RocksDBPriorityQueueConfig priorityQueueConfig, TtlTimeProvider ttlTimeProvider, LatencyTrackingStateConfig latencyTrackingStateConfig, MetricGroup metricGroup, StateBackend.CustomInitializationMetrics customInitializationMetrics, Collection<KeyedStateHandle> stateHandles, StreamCompressionDecorator keyGroupCompressionDecorator, CloseableRegistry cancelStreamRegistry)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description RocksDBKeyedStateBackend<K>
build()
static File
getInstanceRocksDBPath(File instanceBasePath)
RocksDBKeyedStateBackendBuilder<K>
setAsyncExceptionHandler(AsyncExceptionHandler asyncExceptionHandler)
RocksDBKeyedStateBackendBuilder<K>
setManualCompactionConfig(RocksDBManualCompactionConfig manualCompactionConfig)
-
-
-
Constructor Detail
-
RocksDBKeyedStateBackendBuilder
public RocksDBKeyedStateBackendBuilder(String operatorIdentifier, ClassLoader userCodeClassLoader, File instanceBasePath, RocksDBResourceContainer optionsContainer, Function<String,org.rocksdb.ColumnFamilyOptions> columnFamilyOptionsFactory, TaskKvStateRegistry kvStateRegistry, TypeSerializer<K> keySerializer, int numberOfKeyGroups, KeyGroupRange keyGroupRange, ExecutionConfig executionConfig, LocalRecoveryConfig localRecoveryConfig, RocksDBPriorityQueueConfig priorityQueueConfig, TtlTimeProvider ttlTimeProvider, LatencyTrackingStateConfig latencyTrackingStateConfig, MetricGroup metricGroup, StateBackend.CustomInitializationMetrics customInitializationMetrics, @Nonnull Collection<KeyedStateHandle> stateHandles, StreamCompressionDecorator keyGroupCompressionDecorator, CloseableRegistry cancelStreamRegistry)
-
-
Method Detail
-
build
public RocksDBKeyedStateBackend<K> build() throws BackendBuildingException
- Throws:
BackendBuildingException
-
setManualCompactionConfig
public RocksDBKeyedStateBackendBuilder<K> setManualCompactionConfig(RocksDBManualCompactionConfig manualCompactionConfig)
-
setAsyncExceptionHandler
public RocksDBKeyedStateBackendBuilder<K> setAsyncExceptionHandler(AsyncExceptionHandler asyncExceptionHandler)
-
-