Class ChunkWriter.DrainableColumn
java.lang.Object
java.io.InputStream
io.deephaven.extensions.barrage.util.DefensiveDrainable
io.deephaven.extensions.barrage.chunk.ChunkWriter.DrainableColumn
- All Implemented Interfaces:
io.grpc.Drainable,Closeable,AutoCloseable
- Direct Known Subclasses:
NullChunkWriter.NullDrainableColumn,SingleElementListHeaderWriter
- Enclosing interface:
- ChunkWriter<SOURCE_CHUNK_TYPE extends Chunk<Values>>
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract intCount the number of null elements in the outer-most layer of this column (i.e.abstract voidvisitBuffers(ChunkWriter.BufferListener listener) Append the buffer boundaries to the flatbuffer payload via the supplied listener.abstract 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
available, capture, read, read, read, skipMethods inherited from class java.io.InputStream
close, mark, markSupported, nullInputStream, readAllBytes, readNBytes, readNBytes, reset, skipNBytes, transferToMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.grpc.Drainable
drainTo
-
Constructor Details
-
DrainableColumn
public DrainableColumn()
-
-
Method Details
-
visitFieldNodes
Append the field node to the flatbuffer payload via the supplied listener.- Parameters:
listener- the listener to notify for each logical field node in this payload
-
visitBuffers
Append the buffer boundaries to the flatbuffer payload via the supplied listener.- Parameters:
listener- the listener to notify for each sub-buffer in this payload
-
nullCount
public abstract int nullCount()Count the number of null elements in the outer-most layer of this column (i.e. does not count nested nulls inside of arrays)- Returns:
- the number of null elements -- 'useDeephavenNulls' counts are always 0 so that we may omit the validity buffer
-