Package io.datarouter.bytes.kvfile
Record Class KvFileMerger.KvFileMergerByteReaderParams
java.lang.Object
java.lang.Record
io.datarouter.bytes.kvfile.KvFileMerger.KvFileMergerByteReaderParams
- Enclosing class:
- KvFileMerger
public static record KvFileMerger.KvFileMergerByteReaderParams(int memoryFanIn, int streamingFanIn, io.datarouter.scanner.Threads makeReadersThreads, boolean readParallel, ExecutorService readParallelExec, ByteLength readBufferSize, ByteLength chunkSize)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionKvFileMergerByteReaderParams(int memoryFanIn, int streamingFanIn, io.datarouter.scanner.Threads makeReadersThreads, boolean readParallel, ExecutorService readParallelExec, ByteLength readBufferSize, ByteLength chunkSize) Creates an instance of aKvFileMergerByteReaderParamsrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thechunkSizerecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.io.datarouter.scanner.ThreadsReturns the value of themakeReadersThreadsrecord component.intReturns the value of thememoryFanInrecord component.Returns the value of thereadBufferSizerecord component.booleanReturns the value of thereadParallelrecord component.Returns the value of thereadParallelExecrecord component.intReturns the value of thestreamingFanInrecord component.final StringtoString()Returns a string representation of this record class.int
-
Constructor Details
-
KvFileMergerByteReaderParams
public KvFileMergerByteReaderParams(int memoryFanIn, int streamingFanIn, io.datarouter.scanner.Threads makeReadersThreads, boolean readParallel, ExecutorService readParallelExec, ByteLength readBufferSize, ByteLength chunkSize) Creates an instance of aKvFileMergerByteReaderParamsrecord class.- Parameters:
memoryFanIn- the value for thememoryFanInrecord componentstreamingFanIn- the value for thestreamingFanInrecord componentmakeReadersThreads- the value for themakeReadersThreadsrecord componentreadParallel- the value for thereadParallelrecord componentreadParallelExec- the value for thereadParallelExecrecord componentreadBufferSize- the value for thereadBufferSizerecord componentchunkSize- the value for thechunkSizerecord component
-
-
Method Details
-
totalThreads
public int totalThreads() -
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 '=='. -
memoryFanIn
public int memoryFanIn()Returns the value of thememoryFanInrecord component.- Returns:
- the value of the
memoryFanInrecord component
-
streamingFanIn
public int streamingFanIn()Returns the value of thestreamingFanInrecord component.- Returns:
- the value of the
streamingFanInrecord component
-
makeReadersThreads
public io.datarouter.scanner.Threads makeReadersThreads()Returns the value of themakeReadersThreadsrecord component.- Returns:
- the value of the
makeReadersThreadsrecord component
-
readParallel
public boolean readParallel()Returns the value of thereadParallelrecord component.- Returns:
- the value of the
readParallelrecord component
-
readParallelExec
Returns the value of thereadParallelExecrecord component.- Returns:
- the value of the
readParallelExecrecord component
-
readBufferSize
Returns the value of thereadBufferSizerecord component.- Returns:
- the value of the
readBufferSizerecord component
-
chunkSize
Returns the value of thechunkSizerecord component.- Returns:
- the value of the
chunkSizerecord component
-