Class ChunkInputStreamGenerator.DrainableColumn

java.lang.Object
java.io.InputStream
io.deephaven.extensions.barrage.util.DefensiveDrainable
io.deephaven.extensions.barrage.chunk.ChunkInputStreamGenerator.DrainableColumn
All Implemented Interfaces:
io.grpc.Drainable, Closeable, AutoCloseable
Direct Known Subclasses:
SingleElementListHeaderInputStreamGenerator
Enclosing interface:
ChunkInputStreamGenerator

public abstract static class ChunkInputStreamGenerator.DrainableColumn extends DefensiveDrainable
  • Constructor Details

    • DrainableColumn

      public DrainableColumn()
  • Method Details

    • visitFieldNodes

      public abstract void visitFieldNodes(ChunkInputStreamGenerator.FieldNodeListener listener)
      Append the field nde to the flatbuffer payload via the supplied listener.
      Parameters:
      listener - the listener to notify for each logical field node in this payload
    • visitBuffers

      public abstract void visitBuffers(ChunkInputStreamGenerator.BufferListener listener)
      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