Record Class BlockfileDecodedBlock<T>
java.lang.Object
java.lang.Record
io.datarouter.bytes.blockfile.block.parsed.BlockfileDecodedBlock<T>
-
Constructor Summary
ConstructorsConstructorDescriptionBlockfileDecodedBlock(int compressedSize, int decompressedSize, long firstItemId, List<T> items) Creates an instance of aBlockfileDecodedBlockrecord class. -
Method Summary
Modifier and TypeMethodDescriptionintReturns the value of thecompressedSizerecord component.intReturns the value of thedecompressedSizerecord component.final booleanIndicates whether some other object is "equal to" this one.longReturns the value of thefirstItemIdrecord component.final inthashCode()Returns a hash code value for this object.items()Returns the value of theitemsrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
BlockfileDecodedBlock
public BlockfileDecodedBlock(int compressedSize, int decompressedSize, long firstItemId, List<T> items) Creates an instance of aBlockfileDecodedBlockrecord class.- Parameters:
compressedSize- the value for thecompressedSizerecord componentdecompressedSize- the value for thedecompressedSizerecord componentfirstItemId- the value for thefirstItemIdrecord componentitems- the value for theitemsrecord 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 '=='. -
compressedSize
public int compressedSize()Returns the value of thecompressedSizerecord component.- Returns:
- the value of the
compressedSizerecord component
-
decompressedSize
public int decompressedSize()Returns the value of thedecompressedSizerecord component.- Returns:
- the value of the
decompressedSizerecord component
-
firstItemId
public long firstItemId()Returns the value of thefirstItemIdrecord component.- Returns:
- the value of the
firstItemIdrecord component
-
items
-