Class BarrageMessageWriterImpl.RecordBatchMessageView

java.lang.Object
io.deephaven.extensions.barrage.BarrageMessageWriterImpl.SingleUseMessageView
io.deephaven.extensions.barrage.BarrageMessageWriterImpl.RecordBatchMessageView
All Implemented Interfaces:
BarrageMessageWriter.MessageView
Direct Known Subclasses:
BarrageMessageWriterImpl.SnapshotView, BarrageMessageWriterImpl.SubView
Enclosing class:
BarrageMessageWriterImpl

public abstract static class BarrageMessageWriterImpl.RecordBatchMessageView extends BarrageMessageWriterImpl.SingleUseMessageView
A view that writes a message as RecordBatches, each preceded by the DictionaryBatches its rows need: the rows and columns that one subscription or snapshot is sent.
  • Constructor Details

    • RecordBatchMessageView

      public RecordBatchMessageView()
  • Method Details

    • options

      public abstract BarrageOptions options()
    • addRowOffsets

      public abstract RowSet addRowOffsets()
    • modRowOffsets

      public abstract RowSet modRowOffsets(int col)
    • isColumnIncluded

      public abstract boolean isColumnIncluded(int col)
      Whether this view writes the data of column col. A column the view leaves out still gets a field node in every batch, as the schema requires, but no rows: it is written as if the message held no data for it.
      Parameters:
      col - the column's index in the message
      Returns:
      whether the view writes the column's added and modified rows
    • dictionaryRegistry

      @Nullable public abstract @Nullable DictionaryWriterRegistry dictionaryRegistry()
      Returns the DictionaryWriterRegistry for this stream, or null if no columns use dictionary encoding. The manager is shared across all batches of the same stream so that DictionaryWriterState instances survive across batch boundaries.