Class VectorChunkReader
java.lang.Object
io.deephaven.extensions.barrage.chunk.VectorChunkReader
- All Implemented Interfaces:
ChunkReader
-
Nested Class Summary
Nested classes/interfaces inherited from interface io.deephaven.extensions.barrage.chunk.ChunkReader
ChunkReader.Factory, ChunkReader.TypeInfo -
Constructor Summary
ConstructorsConstructorDescriptionVectorChunkReader(StreamReaderOptions options, ChunkReader.TypeInfo typeInfo, ChunkReader.Factory chunkReaderFactory) -
Method Summary
Modifier and TypeMethodDescriptionreadChunk(Iterator<ChunkInputStreamGenerator.FieldNodeInfo> fieldNodeIter, PrimitiveIterator.OfLong bufferInfoIter, DataInput is, WritableChunk<Values> outChunk, int outOffset, int totalRows) Reads the given DataInput to extract the next Arrow buffer as a Deephaven Chunk.
-
Constructor Details
-
VectorChunkReader
public VectorChunkReader(StreamReaderOptions options, ChunkReader.TypeInfo typeInfo, ChunkReader.Factory chunkReaderFactory)
-
-
Method Details
-
readChunk
public WritableObjectChunk<Vector<?>,Values> readChunk(Iterator<ChunkInputStreamGenerator.FieldNodeInfo> fieldNodeIter, PrimitiveIterator.OfLong bufferInfoIter, DataInput is, WritableChunk<Values> outChunk, int outOffset, int totalRows) throws IOException Description copied from interface:ChunkReaderReads the given DataInput to extract the next Arrow buffer as a Deephaven Chunk.- Specified by:
readChunkin interfaceChunkReader- Parameters:
fieldNodeIter- iterator to read fields from the streambufferInfoIter- iterator to read buffers from the streamis- input stream containing buffers to be readoutChunk- chunk to write tooutOffset- offset within the outChunk to begin writingtotalRows- total rows to write to the outChunk- Returns:
- a Chunk containing the data from the stream
- Throws:
IOException- if an error occurred while reading the stream
-