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 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 a BlockfileWriterConfig record class.
      Parameters:
      storage - the value for the storage record component
      encoder - the value for the encoder record component
      headerCodec - the value for the headerCodec record component
      compressor - the value for the compressor record component
      checksummer - the value for the checksummer record component
      userDictionary - the value for the userDictionary record component
      footerUserDictionarySupplier - the value for the footerUserDictionarySupplier record component
      listeners - the value for the listeners record component
      encodeBatchSize - the value for the encodeBatchSize record component
      encodeThreads - the value for the encodeThreads record component
      multipartWrite - the value for the multipartWrite record component
      writeThreads - the value for the writeThreads record component
  • Method Details

    • toString

      public final String 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.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • 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.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      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 with Objects::equals(Object,Object); primitive components are compared with '=='.
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • storage

      public BlockfileStorage storage()
      Returns the value of the storage record component.
      Returns:
      the value of the storage record component
    • encoder

      public Function<T,byte[]> encoder()
      Returns the value of the encoder record component.
      Returns:
      the value of the encoder record component
    • headerCodec

      Returns the value of the headerCodec record component.
      Returns:
      the value of the headerCodec record component
    • compressor

      public BlockfileCompressor compressor()
      Returns the value of the compressor record component.
      Returns:
      the value of the compressor record component
    • checksummer

      public BlockfileChecksummer checksummer()
      Returns the value of the checksummer record component.
      Returns:
      the value of the checksummer record component
    • userDictionary

      public BinaryDictionary userDictionary()
      Returns the value of the userDictionary record component.
      Returns:
      the value of the userDictionary record component
    • footerUserDictionarySupplier

      public Supplier<BinaryDictionary> footerUserDictionarySupplier()
      Returns the value of the footerUserDictionarySupplier record component.
      Returns:
      the value of the footerUserDictionarySupplier record component
    • listeners

      public List<BlockfileListener> listeners()
      Returns the value of the listeners record component.
      Returns:
      the value of the listeners record component
    • encodeBatchSize

      public int encodeBatchSize()
      Returns the value of the encodeBatchSize record component.
      Returns:
      the value of the encodeBatchSize record component
    • encodeThreads

      public io.datarouter.scanner.Threads encodeThreads()
      Returns the value of the encodeThreads record component.
      Returns:
      the value of the encodeThreads record component
    • multipartWrite

      public boolean multipartWrite()
      Returns the value of the multipartWrite record component.
      Returns:
      the value of the multipartWrite record component
    • writeThreads

      public io.datarouter.scanner.Threads writeThreads()
      Returns the value of the writeThreads record component.
      Returns:
      the value of the writeThreads record component