Record Class BlockfileIndexEntry
java.lang.Object
java.lang.Record
io.datarouter.bytes.blockfile.index.BlockfileIndexEntry
public record BlockfileIndexEntry(int level, long childGlobalBlockId, long childIndexOrValueBlockId, BlockfileValueBlockIdRange valueBlockIdRange, BlockfileRowIdRange rowIdRange, BlockfileRowRange rowRange, BlockfileByteRange byteRange)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionBlockfileIndexEntry(int level, long childGlobalBlockId, long childIndexOrValueBlockId, BlockfileValueBlockIdRange valueBlockIdRange, BlockfileRowIdRange rowIdRange, BlockfileRowRange rowRange, BlockfileByteRange byteRange) Creates an instance of aBlockfileIndexEntryrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thebyteRangerecord component.longReturns the value of thechildGlobalBlockIdrecord component.longReturns the value of thechildIndexOrValueBlockIdrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.intlevel()Returns the value of thelevelrecord component.Returns the value of therowIdRangerecord component.rowRange()Returns the value of therowRangerecord component.final StringtoString()Returns a string representation of this record class.Returns the value of thevalueBlockIdRangerecord component.
-
Constructor Details
-
BlockfileIndexEntry
public BlockfileIndexEntry(int level, long childGlobalBlockId, long childIndexOrValueBlockId, BlockfileValueBlockIdRange valueBlockIdRange, BlockfileRowIdRange rowIdRange, BlockfileRowRange rowRange, BlockfileByteRange byteRange) Creates an instance of aBlockfileIndexEntryrecord class.- Parameters:
level- the value for thelevelrecord componentchildGlobalBlockId- the value for thechildGlobalBlockIdrecord componentchildIndexOrValueBlockId- the value for thechildIndexOrValueBlockIdrecord componentvalueBlockIdRange- the value for thevalueBlockIdRangerecord componentrowIdRange- the value for therowIdRangerecord componentrowRange- the value for therowRangerecord componentbyteRange- the value for thebyteRangerecord 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 '=='. -
level
public int level()Returns the value of thelevelrecord component.- Returns:
- the value of the
levelrecord component
-
childGlobalBlockId
public long childGlobalBlockId()Returns the value of thechildGlobalBlockIdrecord component.- Returns:
- the value of the
childGlobalBlockIdrecord component
-
childIndexOrValueBlockId
public long childIndexOrValueBlockId()Returns the value of thechildIndexOrValueBlockIdrecord component.- Returns:
- the value of the
childIndexOrValueBlockIdrecord component
-
valueBlockIdRange
Returns the value of thevalueBlockIdRangerecord component.- Returns:
- the value of the
valueBlockIdRangerecord component
-
rowIdRange
Returns the value of therowIdRangerecord component.- Returns:
- the value of the
rowIdRangerecord component
-
rowRange
Returns the value of therowRangerecord component.- Returns:
- the value of the
rowRangerecord component
-
byteRange
Returns the value of thebyteRangerecord component.- Returns:
- the value of the
byteRangerecord component
-