Package io.deephaven.extensions.barrage
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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract RowSetabstract @Nullable DictionaryWriterRegistryReturns theDictionaryWriterRegistryfor this stream, ornullif no columns use dictionary encoding.abstract booleanisColumnIncluded(int col) Whether this view writes the data of columncol.abstract RowSetmodRowOffsets(int col) abstract BarrageOptionsoptions()Methods inherited from class io.deephaven.extensions.barrage.BarrageMessageWriterImpl.SingleUseMessageView
encodeBatches, forEachStream
-
Constructor Details
-
RecordBatchMessageView
public RecordBatchMessageView()
-
-
Method Details
-
options
-
addRowOffsets
-
modRowOffsets
-
isColumnIncluded
public abstract boolean isColumnIncluded(int col) Whether this view writes the data of columncol. 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
Returns theDictionaryWriterRegistryfor this stream, ornullif no columns use dictionary encoding. The manager is shared across all batches of the same stream so thatDictionaryWriterStateinstances survive across batch boundaries.
-