Class BooleanChunkWriter<SOURCE_CHUNK_TYPE extends Chunk<Values>>

java.lang.Object
io.deephaven.extensions.barrage.chunk.BaseChunkWriter<SOURCE_CHUNK_TYPE>
io.deephaven.extensions.barrage.chunk.BooleanChunkWriter<SOURCE_CHUNK_TYPE>
All Implemented Interfaces:
ChunkWriter<SOURCE_CHUNK_TYPE>

public class BooleanChunkWriter<SOURCE_CHUNK_TYPE extends Chunk<Values>> extends BaseChunkWriter<SOURCE_CHUNK_TYPE>
  • Constructor Details

  • Method Details

    • getIdentity

      public static BooleanChunkWriter<ByteChunk<Values>> getIdentity(boolean isNullable)
    • getInputStream

      public ChunkWriter.DrainableColumn getInputStream(@NotNull @NotNull ChunkWriter.Context context, @Nullable @Nullable RowSet subset, @NotNull @NotNull BarrageOptions options) throws IOException
      Description copied from interface: ChunkWriter
      Get an input stream optionally position-space filtered using the provided RowSet.
      Parameters:
      context - the chunk writer context holding the data to be drained to the client
      subset - if provided, is a position-space filter of source data
      options - options for writing to the stream
      Returns:
      a single-use DrainableColumn ready to be drained via grpc
      Throws:
      IOException
    • computeValidity

      protected void computeValidity(@NotNull @NotNull ChunkWriter.Context context, @NotNull @NotNull RowSequence subset, @NotNull @NotNull BaseChunkWriter.ValidityBuffer validity)
      Description copied from class: BaseChunkWriter
      Report the nullness of each row of the subset, in order, to validity.

      This is invoked at most once per BaseChunkWriter.BaseChunkInputStream: the null count carried by the field node and the bytes of the validity buffer are both derived from this single traversal of the row data.

      Specified by:
      computeValidity in class BaseChunkWriter<SOURCE_CHUNK_TYPE extends Chunk<Values>>
      Parameters:
      context - the context for the chunk
      subset - the subset of rows to consider
      validity - the validity buffer to populate