Record Class BlockfileDecodedBlockBatch<T>
java.lang.Object
java.lang.Record
io.datarouter.bytes.blockfile.block.parsed.BlockfileDecodedBlockBatch<T>
public record BlockfileDecodedBlockBatch<T>(long totalCompressedSize, long totalDecompressedSize, List<BlockfileDecodedBlock<T>> blocks)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionBlockfileDecodedBlockBatch(long totalCompressedSize, long totalDecompressedSize, List<BlockfileDecodedBlock<T>> blocks) Creates an instance of aBlockfileDecodedBlockBatchrecord class. -
Method Summary
Modifier and TypeMethodDescriptionblocks()Returns the value of theblocksrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.final StringtoString()Returns a string representation of this record class.longReturns the value of thetotalCompressedSizerecord component.longReturns the value of thetotalDecompressedSizerecord component.
-
Constructor Details
-
BlockfileDecodedBlockBatch
public BlockfileDecodedBlockBatch(long totalCompressedSize, long totalDecompressedSize, List<BlockfileDecodedBlock<T>> blocks) Creates an instance of aBlockfileDecodedBlockBatchrecord class.- Parameters:
totalCompressedSize- the value for thetotalCompressedSizerecord componenttotalDecompressedSize- the value for thetotalDecompressedSizerecord componentblocks- the value for theblocksrecord 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 '=='. -
totalCompressedSize
public long totalCompressedSize()Returns the value of thetotalCompressedSizerecord component.- Returns:
- the value of the
totalCompressedSizerecord component
-
totalDecompressedSize
public long totalDecompressedSize()Returns the value of thetotalDecompressedSizerecord component.- Returns:
- the value of the
totalDecompressedSizerecord component
-
blocks
Returns the value of theblocksrecord component.- Returns:
- the value of the
blocksrecord component
-