Record Class BlockfileWriter.BlockfileWriteResult
java.lang.Object
java.lang.Record
io.datarouter.bytes.blockfile.io.write.BlockfileWriter.BlockfileWriteResult
- Enclosing class:
BlockfileWriter<T>
public static record BlockfileWriter.BlockfileWriteResult(long numValueBlocks, ByteLength fileLength)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionBlockfileWriteResult(long numValueBlocks, ByteLength fileLength) Creates an instance of aBlockfileWriteResultrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.Returns the value of thefileLengthrecord component.final inthashCode()Returns a hash code value for this object.longReturns the value of thenumValueBlocksrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
BlockfileWriteResult
Creates an instance of aBlockfileWriteResultrecord class.- Parameters:
numValueBlocks- the value for thenumValueBlocksrecord componentfileLength- the value for thefileLengthrecord 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 '=='. -
numValueBlocks
public long numValueBlocks()Returns the value of thenumValueBlocksrecord component.- Returns:
- the value of the
numValueBlocksrecord component
-
fileLength
Returns the value of thefileLengthrecord component.- Returns:
- the value of the
fileLengthrecord component
-