Record Class BlockfileReader.BlockfileReaderConfig<T>
java.lang.Object
java.lang.Record
io.datarouter.bytes.blockfile.io.read.BlockfileReader.BlockfileReaderConfig<T>
- Enclosing class:
BlockfileReader<T>
public static record BlockfileReader.BlockfileReaderConfig<T>(BlockfileStorage storage, Function<BlockfileRow,T> rowDecoder, BlockfileHeaderBlock.BlockfileHeaderCodec headerCodec, io.datarouter.scanner.Threads readThreads, ByteLength readChunkSize, int decodeBatchSize, io.datarouter.scanner.Threads decodeThreads, boolean validateChecksums, Optional<Long> knownFileLength)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionBlockfileReaderConfig(BlockfileStorage storage, Function<BlockfileRow, T> rowDecoder, BlockfileHeaderBlock.BlockfileHeaderCodec headerCodec, io.datarouter.scanner.Threads readThreads, ByteLength readChunkSize, int decodeBatchSize, io.datarouter.scanner.Threads decodeThreads, boolean validateChecksums, Optional<Long> knownFileLength) Creates an instance of aBlockfileReaderConfigrecord class. -
Method Summary
Modifier and TypeMethodDescriptionintReturns the value of thedecodeBatchSizerecord component.io.datarouter.scanner.ThreadsReturns the value of thedecodeThreadsrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of theheaderCodecrecord component.Returns the value of theknownFileLengthrecord component.Returns the value of thereadChunkSizerecord component.io.datarouter.scanner.ThreadsReturns the value of thereadThreadsrecord component.Returns the value of therowDecoderrecord component.storage()Returns the value of thestoragerecord component.final StringtoString()Returns a string representation of this record class.booleanReturns the value of thevalidateChecksumsrecord component.
-
Constructor Details
-
BlockfileReaderConfig
public BlockfileReaderConfig(BlockfileStorage storage, Function<BlockfileRow, T> rowDecoder, BlockfileHeaderBlock.BlockfileHeaderCodec headerCodec, io.datarouter.scanner.Threads readThreads, ByteLength readChunkSize, int decodeBatchSize, io.datarouter.scanner.Threads decodeThreads, boolean validateChecksums, Optional<Long> knownFileLength) Creates an instance of aBlockfileReaderConfigrecord class.- Parameters:
storage- the value for thestoragerecord componentrowDecoder- the value for therowDecoderrecord componentheaderCodec- the value for theheaderCodecrecord componentreadThreads- the value for thereadThreadsrecord componentreadChunkSize- the value for thereadChunkSizerecord componentdecodeBatchSize- the value for thedecodeBatchSizerecord componentdecodeThreads- the value for thedecodeThreadsrecord componentvalidateChecksums- the value for thevalidateChecksumsrecord componentknownFileLength- the value for theknownFileLengthrecord 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 '=='. -
storage
Returns the value of thestoragerecord component.- Returns:
- the value of the
storagerecord component
-
rowDecoder
Returns the value of therowDecoderrecord component.- Returns:
- the value of the
rowDecoderrecord component
-
headerCodec
Returns the value of theheaderCodecrecord component.- Returns:
- the value of the
headerCodecrecord component
-
readThreads
public io.datarouter.scanner.Threads readThreads()Returns the value of thereadThreadsrecord component.- Returns:
- the value of the
readThreadsrecord component
-
readChunkSize
Returns the value of thereadChunkSizerecord component.- Returns:
- the value of the
readChunkSizerecord component
-
decodeBatchSize
public int decodeBatchSize()Returns the value of thedecodeBatchSizerecord component.- Returns:
- the value of the
decodeBatchSizerecord component
-
decodeThreads
public io.datarouter.scanner.Threads decodeThreads()Returns the value of thedecodeThreadsrecord component.- Returns:
- the value of the
decodeThreadsrecord component
-
validateChecksums
public boolean validateChecksums()Returns the value of thevalidateChecksumsrecord component.- Returns:
- the value of the
validateChecksumsrecord component
-
knownFileLength
-