Record Class BlockfileRowIdRange
java.lang.Object
java.lang.Record
io.datarouter.bytes.blockfile.index.BlockfileRowIdRange
-
Constructor Summary
ConstructorsConstructorDescriptionBlockfileRowIdRange(long first, long last) Creates an instance of aBlockfileRowIdRangerecord class. -
Method Summary
Modifier and TypeMethodDescriptionintcompareTo(long rowId) final booleanIndicates whether some other object is "equal to" this one.longfirst()Returns the value of thefirstrecord component.final inthashCode()Returns a hash code value for this object.longlast()Returns the value of thelastrecord component.longnumRows()final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
BlockfileRowIdRange
public BlockfileRowIdRange(long first, long last) Creates an instance of aBlockfileRowIdRangerecord class.- Parameters:
first- the value for thefirstrecord componentlast- the value for thelastrecord component
-
-
Method Details
-
numRows
public long numRows() -
compareTo
public int compareTo(long rowId) -
toString
-
hashCode
-
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 with '=='. -
first
public long first()Returns the value of thefirstrecord component.- Returns:
- the value of the
firstrecord component
-
last
public long last()Returns the value of thelastrecord component.- Returns:
- the value of the
lastrecord component
-