Record Class BlockfileValueBlockCodec.BlockfileValueBlockRows
java.lang.Object
java.lang.Record
io.datarouter.bytes.blockfile.encoding.valueblock.BlockfileValueBlockCodec.BlockfileValueBlockRows
- Enclosing interface:
BlockfileValueBlockCodec
public static record BlockfileValueBlockCodec.BlockfileValueBlockRows(long valueBlockId, long firstRowIdInBlock, List<BlockfileRow> rows)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionBlockfileValueBlockRows(long valueBlockId, long firstRowIdInBlock, List<BlockfileRow> rows) Creates an instance of aBlockfileValueBlockRowsrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.longReturns the value of thefirstRowIdInBlockrecord component.final inthashCode()Returns a hash code value for this object.introwIndex(long rowId) rows()Returns the value of therowsrecord component.final StringtoString()Returns a string representation of this record class.longReturns the value of thevalueBlockIdrecord component.
-
Constructor Details
-
BlockfileValueBlockRows
Creates an instance of aBlockfileValueBlockRowsrecord class.- Parameters:
valueBlockId- the value for thevalueBlockIdrecord componentfirstRowIdInBlock- the value for thefirstRowIdInBlockrecord componentrows- the value for therowsrecord component
-
-
Method Details
-
rowIndex
public int rowIndex(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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
valueBlockId
public long valueBlockId()Returns the value of thevalueBlockIdrecord component.- Returns:
- the value of the
valueBlockIdrecord component
-
firstRowIdInBlock
public long firstRowIdInBlock()Returns the value of thefirstRowIdInBlockrecord component.- Returns:
- the value of the
firstRowIdInBlockrecord component
-
rows
Returns the value of therowsrecord component.- Returns:
- the value of the
rowsrecord component
-