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 aRdbIteratorWithOptions
record class. -
Method Summary
Modifier and TypeMethodDescriptionvoid
close()
final boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.org.rocksdb.RocksIterator
it()
Returns the value of theit
record component.org.rocksdb.ReadOptions
opts()
Returns the value of theopts
record component.final String
toString()
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 aRdbIteratorWithOptions
record class.- Parameters:
it
- the value for theit
record componentopts
- the value for theopts
record component
-
-
Method Details
-
close
public void close()- Specified by:
close
in 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 theit
record component.- Returns:
- the value of the
it
record component
-
opts
public org.rocksdb.ReadOptions opts()Returns the value of theopts
record component.- Returns:
- the value of the
opts
record component
-