Interface ChunkInputStreamGenerator
- All Superinterfaces:
AutoCloseable,SafeCloseable
- All Known Implementing Classes:
BaseChunkInputStreamGenerator,BooleanChunkInputStreamGenerator,ByteChunkInputStreamGenerator,CharChunkInputStreamGenerator,DoubleChunkInputStreamGenerator,FloatChunkInputStreamGenerator,IntChunkInputStreamGenerator,LongChunkInputStreamGenerator,ShortChunkInputStreamGenerator,VarBinaryChunkInputStreamGenerator,VarListChunkInputStreamGenerator,VectorChunkInputStreamGenerator
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classstatic interfacestatic classstatic final classstatic interface -
Method Summary
Modifier and TypeMethodDescriptionstatic WritableChunk<Values>extractChunkFromInputStream(StreamReaderOptions options, int factor, ChunkType chunkType, Class<?> type, Class<?> componentType, Iterator<ChunkInputStreamGenerator.FieldNodeInfo> fieldNodeIter, gnu.trove.iterator.TLongIterator bufferInfoIter, DataInput is, WritableChunk<Values> outChunk, int outOffset, int totalRows) static WritableChunk<Values>extractChunkFromInputStream(StreamReaderOptions options, ChunkType chunkType, Class<?> type, Class<?> componentType, Iterator<ChunkInputStreamGenerator.FieldNodeInfo> fieldNodeIter, gnu.trove.iterator.TLongIterator bufferInfoIter, DataInput is, WritableChunk<Values> outChunk, int offset, int totalRows) getInputStream(StreamReaderOptions options, @Nullable RowSet subset) Get an input stream optionally position-space filtered using the provided RowSet.longReturns the offset of the final row this generator can produce.longReturns the number of rows that were sent before the first row in this generator.static <T> ChunkInputStreamGeneratormakeInputStreamGenerator(ChunkType chunkType, Class<T> type, Class<?> componentType, Chunk<Values> chunk, long rowOffset) Methods inherited from interface io.deephaven.util.SafeCloseable
close
-
Method Details
-
makeInputStreamGenerator
-
extractChunkFromInputStream
static WritableChunk<Values> extractChunkFromInputStream(StreamReaderOptions options, ChunkType chunkType, Class<?> type, Class<?> componentType, Iterator<ChunkInputStreamGenerator.FieldNodeInfo> fieldNodeIter, gnu.trove.iterator.TLongIterator bufferInfoIter, DataInput is, WritableChunk<Values> outChunk, int offset, int totalRows) throws IOException - Throws:
IOException
-
extractChunkFromInputStream
static WritableChunk<Values> extractChunkFromInputStream(StreamReaderOptions options, int factor, ChunkType chunkType, Class<?> type, Class<?> componentType, Iterator<ChunkInputStreamGenerator.FieldNodeInfo> fieldNodeIter, gnu.trove.iterator.TLongIterator bufferInfoIter, DataInput is, WritableChunk<Values> outChunk, int outOffset, int totalRows) throws IOException - Throws:
IOException
-
getRowOffset
long getRowOffset()Returns the number of rows that were sent before the first row in this generator. -
getLastRowOffset
long getLastRowOffset()Returns the offset of the final row this generator can produce. -
getInputStream
ChunkInputStreamGenerator.DrainableColumn getInputStream(StreamReaderOptions options, @Nullable @Nullable RowSet subset) throws IOException Get an input stream optionally position-space filtered using the provided RowSet.- Parameters:
options- the serializable options for this subscriptionsubset- if provided, is a position-space filter of source data- Returns:
- a single-use DrainableColumn ready to be drained via grpc
- Throws:
IOException
-