public interface RocksDBConfigSetter
org.rocksdb.BlockBasedTableConfig
you should retrieve a reference to
the existing one (rather than create a new BlockBasedTableConfig object) so as to not lose the other default settings.
This can be done as BlockBasedTableConfig tableConfig = (BlockBasedTableConfig) options.tableFormatConfig();
Modifier and Type | Field and Description |
---|---|
static org.slf4j.Logger |
LOG |
Modifier and Type | Method and Description |
---|---|
default void |
close(String storeName,
org.rocksdb.Options options)
Close any user-constructed objects that inherit from
org.rocksdb.RocksObject . |
void |
setConfig(String storeName,
org.rocksdb.Options options,
Map<String,Object> configs)
Set the rocks db options for the provided storeName.
|
void setConfig(String storeName, org.rocksdb.Options options, Map<String,Object> configs)
storeName
- the name of the store being configuredoptions
- the RocksDB optionsconfigs
- the configuration supplied to StreamsConfig
default void close(String storeName, org.rocksdb.Options options)
org.rocksdb.RocksObject
.
Any object created with new
in setConfig()
and that inherits
from org.rocksdb.RocksObject
should have org.rocksdb.RocksObject#close()
called on it here to avoid leaking off-heap memory. Objects to be closed can be saved by the user or retrieved
back from options
using its getter methods.
Example objects needing to be closed include org.rocksdb.Filter
and org.rocksdb.Cache
.
storeName
- the name of the store being configuredoptions
- the RocksDB options