Class FixedWidthChunkInputStreamGenerator
java.lang.Object
io.deephaven.extensions.barrage.chunk.FixedWidthChunkInputStreamGenerator
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic interface
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic <T> WritableObjectChunk<T,
Values> extractChunkFromInputStreamWithTypeConversion
(int elementSize, StreamReaderOptions options, FixedWidthChunkInputStreamGenerator.TypeConversion<T> conversion, Iterator<ChunkInputStreamGenerator.FieldNodeInfo> fieldNodeIter, PrimitiveIterator.OfLong bufferInfoIter, DataInput is, WritableChunk<Values> outChunk, int outOffset, int totalRows) Generic input stream reading from arrow's buffer and convert directly to java type.
-
Constructor Details
-
FixedWidthChunkInputStreamGenerator
public FixedWidthChunkInputStreamGenerator()
-
-
Method Details
-
extractChunkFromInputStreamWithTypeConversion
public static <T> WritableObjectChunk<T,Values> extractChunkFromInputStreamWithTypeConversion(int elementSize, StreamReaderOptions options, FixedWidthChunkInputStreamGenerator.TypeConversion<T> conversion, Iterator<ChunkInputStreamGenerator.FieldNodeInfo> fieldNodeIter, PrimitiveIterator.OfLong bufferInfoIter, DataInput is, WritableChunk<Values> outChunk, int outOffset, int totalRows) throws IOException Generic input stream reading from arrow's buffer and convert directly to java type. If useDeephavenNulls is enabled, then the conversion method must properly return a null value.- Type Parameters:
T
- the result type- Parameters:
elementSize
- the number of bytes per element (element size is fixed)options
- the stream reader optionsconversion
- the conversion method from input stream to the result typefieldNodeIter
- arrow field node iteratorbufferInfoIter
- arrow buffer info iteratoroutChunk
- the returned chunk from an earlier record batchoutOffset
- the offset to start writing intooutChunk
totalRows
- the total known rows for this column; if known (else 0)is
- data input stream- Returns:
- the resulting chunk of the buffer that is read
- Throws:
IOException
-