Record Class BlockfileReader.BlockfileDecodedBlockBatch<T>
java.lang.Object
java.lang.Record
io.datarouter.bytes.blockfile.read.BlockfileReader.BlockfileDecodedBlockBatch<T>
- Enclosing class:
BlockfileReader<T>
public static record BlockfileReader.BlockfileDecodedBlockBatch<T>(long totalCompressedSize, long totalDecompressedSize, List<BlockfileReader.BlockfileDecodedBlock<T>> blocks)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionBlockfileDecodedBlockBatch(long totalCompressedSize, long totalDecompressedSize, List<BlockfileReader.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.values()
-
Constructor Details
-
BlockfileDecodedBlockBatch
public BlockfileDecodedBlockBatch(long totalCompressedSize, long totalDecompressedSize, List<BlockfileReader.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
-
values
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
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
-