Class DefaultChunkInputStreamGeneratorFactory

java.lang.Object
io.deephaven.extensions.barrage.chunk.DefaultChunkInputStreamGeneratorFactory
All Implemented Interfaces:
ChunkInputStreamGenerator.Factory

public class DefaultChunkInputStreamGeneratorFactory extends Object implements ChunkInputStreamGenerator.Factory
JVM implementation of ChunkInputStreamGenerator.Factory, suitable for use in Java clients and servers.
  • Field Details

  • Constructor Details

    • DefaultChunkInputStreamGeneratorFactory

      public DefaultChunkInputStreamGeneratorFactory()
  • Method Details

    • makeInputStreamGenerator

      public <T> ChunkInputStreamGenerator makeInputStreamGenerator(ChunkType chunkType, Class<T> type, Class<?> componentType, Chunk<Values> chunk, long rowOffset)
      Description copied from interface: ChunkInputStreamGenerator.Factory
      Returns an instance capable of writing the given chunk
      Specified by:
      makeInputStreamGenerator in interface ChunkInputStreamGenerator.Factory
      Type Parameters:
      T - the type of data in the column
      Parameters:
      chunkType - the type of the chunk to be written
      type - the Java type of the column being written
      componentType - the Java type of data in an array/vector, or null if irrelevant
      chunk - the chunk that will be written out to an input stream
      rowOffset - the offset into the chunk to start writing from
      Returns:
      an instance capable of serializing the given chunk