Record Class BlockfileRowRange
java.lang.Object
java.lang.Record
io.datarouter.bytes.blockfile.index.BlockfileRowRange
-
Constructor Summary
ConstructorsConstructorDescriptionBlockfileRowRange(BlockfileRowVersion first, BlockfileRowVersion last) Creates an instance of aBlockfileRowRangerecord class. -
Method Summary
Modifier and TypeMethodDescriptionintcompareToKey(byte[] key) booleancontainsKey(byte[] key) final booleanIndicates whether some other object is "equal to" this one.first()Returns the value of thefirstrecord component.final inthashCode()Returns a hash code value for this object.last()Returns the value of thelastrecord component.intfinal StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
BlockfileRowRange
Creates an instance of aBlockfileRowRangerecord class.- Parameters:
first- the value for thefirstrecord componentlast- the value for thelastrecord component
-
-
Method Details
-
sumOfLengths
public int sumOfLengths() -
containsKey
public boolean containsKey(byte[] key) -
compareToKey
public int compareToKey(byte[] key) -
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 withObjects::equals(Object,Object). -
first
Returns the value of thefirstrecord component.- Returns:
- the value of the
firstrecord component
-
last
Returns the value of thelastrecord component.- Returns:
- the value of the
lastrecord component
-