Class VarBinaryChunkWriter<T>

java.lang.Object
io.deephaven.extensions.barrage.chunk.BaseChunkWriter<ObjectChunk<T,Values>>
io.deephaven.extensions.barrage.chunk.VarBinaryChunkWriter<T>
All Implemented Interfaces:
ChunkWriter<ObjectChunk<T,Values>>

public class VarBinaryChunkWriter<T> extends BaseChunkWriter<ObjectChunk<T,Values>>
  • Constructor Details

  • Method Details

    • getInputStream

      public ChunkWriter.DrainableColumn getInputStream(@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
    • makeContext

      public VarBinaryChunkWriter<T>.Context makeContext(@NotNull @NotNull ObjectChunk<T,Values> chunk, long rowOffset)
      Description copied from interface: ChunkWriter
      Create a context for the given chunk.
      Specified by:
      makeContext in interface ChunkWriter<T>
      Overrides:
      makeContext in class BaseChunkWriter<ObjectChunk<T,Values>>
      Parameters:
      chunk - the chunk of data to be written
      rowOffset - the offset into the logical message potentially spread over multiple chunks
      Returns:
      a context for the given chunk
    • computeValidity

      protected void computeValidity(@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<ObjectChunk<T,Values>>
      Parameters:
      context - the context for the chunk
      subset - the subset of rows to consider
      validity - the validity buffer to populate