Record Class BlockfileWriter.BlockfileWriterConfig<T>
java.lang.Object
java.lang.Record
io.datarouter.bytes.blockfile.write.BlockfileWriter.BlockfileWriterConfig<T>
- Enclosing class:
BlockfileWriter<T>
public static record BlockfileWriter.BlockfileWriterConfig<T>(BlockfileStorage storage, Function<T,byte[]> encoder, BlockfileHeader.BlockfileHeaderCodec headerCodec, 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)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionBlockfileWriterConfig(BlockfileStorage storage, Function<T, byte[]> encoder, BlockfileHeader.BlockfileHeaderCodec headerCodec, 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) 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.encoder()Returns the value of theencoderrecord 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 thelistenersrecord component.booleanReturns the value of themultipartWriterecord component.storage()Returns the value of thestoragerecord component.final StringtoString()Returns a string representation of this record class.Returns the value of theuserDictionaryrecord component.io.datarouter.scanner.ThreadsReturns the value of thewriteThreadsrecord component.
-
Constructor Details
-
BlockfileWriterConfig
public BlockfileWriterConfig(BlockfileStorage storage, Function<T, byte[]> encoder, BlockfileHeader.BlockfileHeaderCodec headerCodec, 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) Creates an instance of aBlockfileWriterConfigrecord class.- Parameters:
storage- the value for thestoragerecord componentencoder- the value for theencoderrecord componentheaderCodec- the value for theheaderCodecrecord 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 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
-
encoder
Returns the value of theencoderrecord component.- Returns:
- the value of the
encoderrecord component
-
headerCodec
Returns the value of theheaderCodecrecord component.- Returns:
- the value of the
headerCodecrecord 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
-