Record Class BlockfileReader.BlockfileReaderConfig<T>
java.lang.Object
java.lang.Record
io.datarouter.bytes.blockfile.read.BlockfileReader.BlockfileReaderConfig<T>
- Enclosing class:
BlockfileReader<T>
public static record BlockfileReader.BlockfileReaderConfig<T>(BlockfileStorage storage, Function<BlockfileReader<T>,Function<byte[],T>> decoderExtractor, BlockfileHeader.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<BlockfileReader<T>, Function<byte[], T>> decoderExtractor, BlockfileHeader.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.Function<BlockfileReader<T>, Function<byte[], T>> Returns the value of thedecoderExtractorrecord 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.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<BlockfileReader<T>, Function<byte[], T>> decoderExtractor, BlockfileHeader.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 componentdecoderExtractor- the value for thedecoderExtractorrecord 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
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 '=='. -
storage
Returns the value of thestoragerecord component.- Returns:
- the value of the
storagerecord component
-
decoderExtractor
Returns the value of thedecoderExtractorrecord component.- Returns:
- the value of the
decoderExtractorrecord 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
Returns the value of theknownFileLengthrecord component.- Returns:
- the value of the
knownFileLengthrecord component
-