Class DoubleChunkReader
java.lang.Object
io.deephaven.extensions.barrage.chunk.DoubleChunkReader
- 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
ConstructorDescriptionDoubleChunkReader
(StreamReaderOptions options) DoubleChunkReader
(StreamReaderOptions options, DoubleChunkReader.DoubleConversion conversion) -
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.<T> ChunkReader
-
Constructor Details
-
DoubleChunkReader
-
DoubleChunkReader
public DoubleChunkReader(StreamReaderOptions options, DoubleChunkReader.DoubleConversion conversion)
-
-
Method Details
-
transform
-
readChunk
public WritableDoubleChunk<Values> readChunk(Iterator<ChunkInputStreamGenerator.FieldNodeInfo> fieldNodeIter, PrimitiveIterator.OfLong bufferInfoIter, DataInput is, WritableChunk<Values> outChunk, int outOffset, int totalRows) throws IOException Description copied from interface:ChunkReader
Reads the given DataInput to extract the next Arrow buffer as a Deephaven Chunk.- Specified by:
readChunk
in 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
-