Package org.dizitart.no2.rocksdb
Class RocksDBConfig
- java.lang.Object
-
- org.dizitart.no2.rocksdb.RocksDBConfig
-
- All Implemented Interfaces:
StoreConfig
public class RocksDBConfig extends Object implements StoreConfig
Configuration class for RocksDB store. It implements theStoreConfiginterface.- Since:
- 4.0
- Author:
- Anindya Chatterjee
- See Also:
StoreConfig,RocksDBModule,RocksDBModuleBuilder
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddStoreEventListener(StoreEventListener listener)Adds a store event listener to the configuration.org.rocksdb.ColumnFamilyOptionscolumnFamilyOptions()The RocksDBColumnFamilyOptionsused to configure the database instance.org.rocksdb.DBOptionsdbOptions()The RocksDBDBOptionsused to configure the database instance.Set<StoreEventListener>eventListeners()The set of event listeners registered with this configuration.StringfilePath()The file path of the RocksDB data store.booleanisInMemory()Returns whether the RocksDB instance is in memory or not.BooleanisReadOnly()ObjectFormatterobjectFormatter()The object formatter used to serialize and deserialize objects.org.rocksdb.Optionsoptions()The RocksDBOptionsused to configure the database instance.
-
-
-
Method Detail
-
addStoreEventListener
public void addStoreEventListener(StoreEventListener listener)
Adds a store event listener to the configuration.- Specified by:
addStoreEventListenerin interfaceStoreConfig- Parameters:
listener- the store event listener to add
-
isInMemory
public final boolean isInMemory()
Returns whether the RocksDB instance is in memory or not.- Specified by:
isInMemoryin interfaceStoreConfig- Returns:
trueif the RocksDB instance is in memory;falseotherwise.
-
isReadOnly
public final Boolean isReadOnly()
- Specified by:
isReadOnlyin interfaceStoreConfig
-
eventListeners
public Set<StoreEventListener> eventListeners()
The set of event listeners registered with this configuration.
-
options
public org.rocksdb.Options options()
The RocksDBOptionsused to configure the database instance.
-
dbOptions
public org.rocksdb.DBOptions dbOptions()
The RocksDBDBOptionsused to configure the database instance.
-
columnFamilyOptions
public org.rocksdb.ColumnFamilyOptions columnFamilyOptions()
The RocksDBColumnFamilyOptionsused to configure the database instance.
-
filePath
public String filePath()
The file path of the RocksDB data store.- Specified by:
filePathin interfaceStoreConfig
-
objectFormatter
public ObjectFormatter objectFormatter()
The object formatter used to serialize and deserialize objects.
-
-