Interface ChunkInputStreamGenerator.Factory

All Known Implementing Classes:
DefaultChunkInputStreamGeneratorFactory
Enclosing interface:
ChunkInputStreamGenerator

public static interface ChunkInputStreamGenerator.Factory
Creator of ChunkInputStreamGenerator instances.

This API may not be stable, while the JS API's usages of it are implemented.

  • Method Details

    • makeInputStreamGenerator

      <T> ChunkInputStreamGenerator makeInputStreamGenerator(ChunkType chunkType, Class<T> type, Class<?> componentType, Chunk<Values> chunk, long rowOffset)
      Returns an instance capable of writing the given chunk
      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