Class NullChunkWriter.NullDrainableColumn
java.lang.Object
java.io.InputStream
io.deephaven.extensions.barrage.util.DefensiveDrainable
io.deephaven.extensions.barrage.chunk.ChunkWriter.DrainableColumn
io.deephaven.extensions.barrage.chunk.NullChunkWriter.NullDrainableColumn
- All Implemented Interfaces:
io.grpc.Drainable,Closeable,AutoCloseable
- Enclosing class:
- NullChunkWriter
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintA defensive drainable needs to override available.intdrainTo(OutputStream outputStream) intCount the number of null elements in the outer-most layer of this column (i.e.voidvisitBuffers(ChunkWriter.BufferListener listener) Append the buffer boundaries to the flatbuffer payload via the supplied listener.voidvisitFieldNodes(ChunkWriter.FieldNodeListener listener) Append the field node to the flatbuffer payload via the supplied listener.Methods inherited from class io.deephaven.extensions.barrage.util.DefensiveDrainable
capture, read, read, read, skipMethods inherited from class java.io.InputStream
close, mark, markSupported, nullInputStream, readAllBytes, readNBytes, readNBytes, reset, skipNBytes, transferTo
-
Constructor Details
-
NullDrainableColumn
public NullDrainableColumn(int size)
-
-
Method Details
-
visitFieldNodes
Description copied from class:ChunkWriter.DrainableColumnAppend the field node to the flatbuffer payload via the supplied listener.- Specified by:
visitFieldNodesin classChunkWriter.DrainableColumn- Parameters:
listener- the listener to notify for each logical field node in this payload
-
visitBuffers
Description copied from class:ChunkWriter.DrainableColumnAppend the buffer boundaries to the flatbuffer payload via the supplied listener.- Specified by:
visitBuffersin classChunkWriter.DrainableColumn- Parameters:
listener- the listener to notify for each sub-buffer in this payload
-
nullCount
public int nullCount()Description copied from class:ChunkWriter.DrainableColumnCount the number of null elements in the outer-most layer of this column (i.e. does not count nested nulls inside of arrays)- Specified by:
nullCountin classChunkWriter.DrainableColumn- Returns:
- the number of null elements -- 'useDeephavenNulls' counts are always 0 so that we may omit the validity buffer
-
drainTo
- Throws:
IOException
-
available
Description copied from class:DefensiveDrainableA defensive drainable needs to override available. As opposed to the genericInputStream, this method must return the exact amount available.- Overrides:
availablein classDefensiveDrainable- Returns:
- the exact amount available
- Throws:
IOException- if an I/O exception occurs
-