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
-
INSTANCE
-
-
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 interfaceChunkInputStreamGenerator.Factory
- Type Parameters:
T
- the type of data in the column- Parameters:
chunkType
- the type of the chunk to be writtentype
- the Java type of the column being writtencomponentType
- the Java type of data in an array/vector, or null if irrelevantchunk
- the chunk that will be written out to an input streamrowOffset
- the offset into the chunk to start writing from- Returns:
- an instance capable of serializing the given chunk
-