Record Class RocksDbOptions
java.lang.Object
java.lang.Record
io.camunda.zeebe.db.impl.rocksdb.transaction.RocksDbOptions
- Record Components:
dbOptions- The database options used to open the RocksDB databasecfOptions- The column family options used to open the RocksDB database
public record RocksDbOptions(org.rocksdb.DBOptions dbOptions, org.rocksdb.ColumnFamilyOptions cfOptions)
extends Record
RocksDB has separate options for the database and the column families. Zeebe configuration can
change these depending on its own configuration. As each of the parts must be individually
closed, this record allows easily passing both configurations around within Zeebe.
While each column family in RocksDB can be configured differently, Zeebe only uses a single RocksDB column family. We therefore don't have to differentiate further than a single database options and a single column family options.
-
Constructor Summary
ConstructorsConstructorDescriptionRocksDbOptions(org.rocksdb.DBOptions dbOptions, org.rocksdb.ColumnFamilyOptions cfOptions) Creates an instance of aRocksDbOptionsrecord class. -
Method Summary
Modifier and TypeMethodDescriptionorg.rocksdb.ColumnFamilyOptionsReturns the value of thecfOptionsrecord component.org.rocksdb.DBOptionsReturns the value of thedbOptionsrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Method Details
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared withObjects::equals(Object,Object). -
dbOptions
public org.rocksdb.DBOptions dbOptions()Returns the value of thedbOptionsrecord component.- Returns:
- the value of the
dbOptionsrecord component
-
cfOptions
public org.rocksdb.ColumnFamilyOptions cfOptions()Returns the value of thecfOptionsrecord component.- Returns:
- the value of the
cfOptionsrecord component
-