Record Class BlockfileWriter.BlockfileWriterConfig
java.lang.Object
java.lang.Record
io.datarouter.bytes.blockfile.io.write.BlockfileWriter.BlockfileWriterConfig
- Enclosing class:
BlockfileWriter<T>
public static record BlockfileWriter.BlockfileWriterConfig(BlockfileStorage storage, BlockfileHeaderBlock.BlockfileHeaderCodec headerCodec, BlockfileValueBlockFormat valueBlockFormat, BlockfileIndexBlockFormat indexBlockFormat, BlockfileCompressor compressor, BlockfileChecksummer checksummer, BinaryDictionary userDictionary, Supplier<BinaryDictionary> footerUserDictionarySupplier, List<BlockfileListener> listeners, int encodeBatchSize, io.datarouter.scanner.Threads encodeThreads, boolean multipartWrite, io.datarouter.scanner.Threads writeThreads, int indexFanOut, Optional<ByteLength> optTargetIndexBlockSize)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionBlockfileWriterConfig(BlockfileStorage storage, BlockfileHeaderBlock.BlockfileHeaderCodec headerCodec, BlockfileValueBlockFormat valueBlockFormat, BlockfileIndexBlockFormat indexBlockFormat, BlockfileCompressor compressor, BlockfileChecksummer checksummer, BinaryDictionary userDictionary, Supplier<BinaryDictionary> footerUserDictionarySupplier, List<BlockfileListener> listeners, int encodeBatchSize, io.datarouter.scanner.Threads encodeThreads, boolean multipartWrite, io.datarouter.scanner.Threads writeThreads, int indexFanOut, Optional<ByteLength> optTargetIndexBlockSize) Creates an instance of aBlockfileWriterConfigrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thechecksummerrecord component.Returns the value of thecompressorrecord component.intReturns the value of theencodeBatchSizerecord component.io.datarouter.scanner.ThreadsReturns the value of theencodeThreadsrecord component.final booleanIndicates whether some other object is "equal to" this one.Returns the value of thefooterUserDictionarySupplierrecord component.final inthashCode()Returns a hash code value for this object.Returns the value of theheaderCodecrecord component.Returns the value of theindexBlockFormatrecord component.intReturns the value of theindexFanOutrecord component.Returns the value of thelistenersrecord component.booleanReturns the value of themultipartWriterecord component.Returns the value of theoptTargetIndexBlockSizerecord component.storage()Returns the value of thestoragerecord component.final StringtoString()Returns a string representation of this record class.Returns the value of theuserDictionaryrecord component.Returns the value of thevalueBlockFormatrecord component.io.datarouter.scanner.ThreadsReturns the value of thewriteThreadsrecord component.
-
Constructor Details
-
BlockfileWriterConfig
public BlockfileWriterConfig(BlockfileStorage storage, BlockfileHeaderBlock.BlockfileHeaderCodec headerCodec, BlockfileValueBlockFormat valueBlockFormat, BlockfileIndexBlockFormat indexBlockFormat, BlockfileCompressor compressor, BlockfileChecksummer checksummer, BinaryDictionary userDictionary, Supplier<BinaryDictionary> footerUserDictionarySupplier, List<BlockfileListener> listeners, int encodeBatchSize, io.datarouter.scanner.Threads encodeThreads, boolean multipartWrite, io.datarouter.scanner.Threads writeThreads, int indexFanOut, Optional<ByteLength> optTargetIndexBlockSize) Creates an instance of aBlockfileWriterConfigrecord class.- Parameters:
storage- the value for thestoragerecord componentheaderCodec- the value for theheaderCodecrecord componentvalueBlockFormat- the value for thevalueBlockFormatrecord componentindexBlockFormat- the value for theindexBlockFormatrecord componentcompressor- the value for thecompressorrecord componentchecksummer- the value for thechecksummerrecord componentuserDictionary- the value for theuserDictionaryrecord componentfooterUserDictionarySupplier- the value for thefooterUserDictionarySupplierrecord componentlisteners- the value for thelistenersrecord componentencodeBatchSize- the value for theencodeBatchSizerecord componentencodeThreads- the value for theencodeThreadsrecord componentmultipartWrite- the value for themultipartWriterecord componentwriteThreads- the value for thewriteThreadsrecord componentindexFanOut- the value for theindexFanOutrecord componentoptTargetIndexBlockSize- the value for theoptTargetIndexBlockSizerecord 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
-
headerCodec
Returns the value of theheaderCodecrecord component.- Returns:
- the value of the
headerCodecrecord component
-
valueBlockFormat
Returns the value of thevalueBlockFormatrecord component.- Returns:
- the value of the
valueBlockFormatrecord component
-
indexBlockFormat
Returns the value of theindexBlockFormatrecord component.- Returns:
- the value of the
indexBlockFormatrecord component
-
compressor
Returns the value of thecompressorrecord component.- Returns:
- the value of the
compressorrecord component
-
checksummer
Returns the value of thechecksummerrecord component.- Returns:
- the value of the
checksummerrecord component
-
userDictionary
Returns the value of theuserDictionaryrecord component.- Returns:
- the value of the
userDictionaryrecord component
-
listeners
Returns the value of thelistenersrecord component.- Returns:
- the value of the
listenersrecord component
-
encodeBatchSize
public int encodeBatchSize()Returns the value of theencodeBatchSizerecord component.- Returns:
- the value of the
encodeBatchSizerecord component
-
encodeThreads
public io.datarouter.scanner.Threads encodeThreads()Returns the value of theencodeThreadsrecord component.- Returns:
- the value of the
encodeThreadsrecord component
-
multipartWrite
public boolean multipartWrite()Returns the value of themultipartWriterecord component.- Returns:
- the value of the
multipartWriterecord component
-
writeThreads
public io.datarouter.scanner.Threads writeThreads()Returns the value of thewriteThreadsrecord component.- Returns:
- the value of the
writeThreadsrecord component
-
indexFanOut
public int indexFanOut()Returns the value of theindexFanOutrecord component.- Returns:
- the value of the
indexFanOutrecord component
-
optTargetIndexBlockSize
Returns the value of theoptTargetIndexBlockSizerecord component.- Returns:
- the value of the
optTargetIndexBlockSizerecord component
-