public final class RocksDBResourceContainer extends Object implements AutoCloseable
This should be the only entrance for EmbeddedRocksDBStateBackend
to get RocksDB
options, and should be properly (and necessarily) closed to prevent resource leak.
Constructor and Description |
---|
RocksDBResourceContainer() |
RocksDBResourceContainer(PredefinedOptions predefinedOptions,
RocksDBOptionsFactory optionsFactory) |
RocksDBResourceContainer(PredefinedOptions predefinedOptions,
RocksDBOptionsFactory optionsFactory,
OpaqueMemoryResource<org.apache.flink.contrib.streaming.state.RocksDBSharedResources> sharedResources) |
RocksDBResourceContainer(ReadableConfig configuration,
PredefinedOptions predefinedOptions,
RocksDBOptionsFactory optionsFactory,
OpaqueMemoryResource<org.apache.flink.contrib.streaming.state.RocksDBSharedResources> sharedResources,
File instanceBasePath,
boolean enableStatistics) |
Modifier and Type | Method and Description |
---|---|
void |
close() |
org.rocksdb.ColumnFamilyOptions |
getColumnOptions()
Gets the RocksDB
ColumnFamilyOptions to be used for all RocksDB instances. |
org.rocksdb.DBOptions |
getDbOptions()
Gets the RocksDB
DBOptions to be used for RocksDB instances. |
org.rocksdb.ReadOptions |
getReadOptions()
Gets the RocksDB
ReadOptions to be used for read operations. |
Long |
getWriteBufferManagerCapacity()
Gets write buffer manager capacity.
|
org.rocksdb.WriteOptions |
getWriteOptions()
Gets the RocksDB
WriteOptions to be used for write operations. |
@VisibleForTesting public RocksDBResourceContainer()
@VisibleForTesting public RocksDBResourceContainer(PredefinedOptions predefinedOptions, @Nullable RocksDBOptionsFactory optionsFactory)
@VisibleForTesting public RocksDBResourceContainer(PredefinedOptions predefinedOptions, @Nullable RocksDBOptionsFactory optionsFactory, @Nullable OpaqueMemoryResource<org.apache.flink.contrib.streaming.state.RocksDBSharedResources> sharedResources)
public RocksDBResourceContainer(ReadableConfig configuration, PredefinedOptions predefinedOptions, @Nullable RocksDBOptionsFactory optionsFactory, @Nullable OpaqueMemoryResource<org.apache.flink.contrib.streaming.state.RocksDBSharedResources> sharedResources, @Nullable File instanceBasePath, boolean enableStatistics)
public org.rocksdb.DBOptions getDbOptions()
DBOptions
to be used for RocksDB instances.public Long getWriteBufferManagerCapacity()
public org.rocksdb.ColumnFamilyOptions getColumnOptions()
ColumnFamilyOptions
to be used for all RocksDB instances.public org.rocksdb.WriteOptions getWriteOptions()
WriteOptions
to be used for write operations.public org.rocksdb.ReadOptions getReadOptions()
ReadOptions
to be used for read operations.public void close() throws Exception
close
in interface AutoCloseable
Exception
Copyright © 2014–2024 The Apache Software Foundation. All rights reserved.