Record Class BlockfileIndexBlock
java.lang.Object
java.lang.Record
io.datarouter.bytes.blockfile.block.decoded.BlockfileIndexBlock
public record BlockfileIndexBlock(long globalBlockId, long indexBlockId, int level, int numChildren, byte[] offsetsTable, byte[] indexKeys)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionBlockfileIndexBlock(long globalBlockId, long indexBlockId, int level, int numChildren, byte[] offsetsTable, byte[] indexKeys) Creates an instance of aBlockfileIndexBlockrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.longReturns the value of theglobalBlockIdrecord component.final inthashCode()Returns a hash code value for this object.longReturns the value of theindexBlockIdrecord component.byte[]Returns the value of theindexKeysrecord component.intlevel()Returns the value of thelevelrecord component.intReturns the value of thenumChildrenrecord component.byte[]Returns the value of theoffsetsTablerecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
BlockfileIndexBlock
public BlockfileIndexBlock(long globalBlockId, long indexBlockId, int level, int numChildren, byte[] offsetsTable, byte[] indexKeys) Creates an instance of aBlockfileIndexBlockrecord class.- Parameters:
globalBlockId- the value for theglobalBlockIdrecord componentindexBlockId- the value for theindexBlockIdrecord componentlevel- the value for thelevelrecord componentnumChildren- the value for thenumChildrenrecord componentoffsetsTable- the value for theoffsetsTablerecord componentindexKeys- the value for theindexKeysrecord component
-
-
Method Details
-
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 '=='. -
globalBlockId
public long globalBlockId()Returns the value of theglobalBlockIdrecord component.- Returns:
- the value of the
globalBlockIdrecord component
-
indexBlockId
public long indexBlockId()Returns the value of theindexBlockIdrecord component.- Returns:
- the value of the
indexBlockIdrecord component
-
level
public int level()Returns the value of thelevelrecord component.- Returns:
- the value of the
levelrecord component
-
numChildren
public int numChildren()Returns the value of thenumChildrenrecord component.- Returns:
- the value of the
numChildrenrecord component
-
offsetsTable
public byte[] offsetsTable()Returns the value of theoffsetsTablerecord component.- Returns:
- the value of the
offsetsTablerecord component
-
indexKeys
public byte[] indexKeys()Returns the value of theindexKeysrecord component.- Returns:
- the value of the
indexKeysrecord component
-