Package org.yamcs.parameterarchive
Record Class RdbIteratorWithOptions
java.lang.Object
java.lang.Record
org.yamcs.parameterarchive.RdbIteratorWithOptions
- All Implemented Interfaces:
AutoCloseable
public record RdbIteratorWithOptions(org.rocksdb.RocksIterator it, org.rocksdb.ReadOptions opts)
extends Record
implements AutoCloseable
the options object has a snapshot which can be used to get consistent view of the database
-
Constructor Summary
ConstructorsConstructorDescriptionRdbIteratorWithOptions(org.rocksdb.RocksIterator it, org.rocksdb.ReadOptions opts) Creates an instance of aRdbIteratorWithOptionsrecord class. -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.org.rocksdb.RocksIteratorit()Returns the value of theitrecord component.org.rocksdb.ReadOptionsopts()Returns the value of theoptsrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
RdbIteratorWithOptions
public RdbIteratorWithOptions(org.rocksdb.RocksIterator it, org.rocksdb.ReadOptions opts) Creates an instance of aRdbIteratorWithOptionsrecord class.- Parameters:
it- the value for theitrecord componentopts- the value for theoptsrecord component
-
-
Method Details
-
close
public void close()- Specified by:
closein interfaceAutoCloseable
-
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). -
it
public org.rocksdb.RocksIterator it()Returns the value of theitrecord component.- Returns:
- the value of the
itrecord component
-
opts
public org.rocksdb.ReadOptions opts()Returns the value of theoptsrecord component.- Returns:
- the value of the
optsrecord component
-