Package io.deephaven.extensions.barrage
Class BarrageMessageWriterImpl.SnapshotView
java.lang.Object
io.deephaven.extensions.barrage.BarrageMessageWriterImpl.SnapshotView
- All Implemented Interfaces:
BarrageMessageWriter.MessageView,BarrageMessageWriterImpl.RecordBatchMessageView
- Enclosing class:
BarrageMessageWriterImpl
protected class BarrageMessageWriterImpl.SnapshotView
extends Object
implements BarrageMessageWriterImpl.RecordBatchMessageView
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedSnapshotView(BarrageSnapshotOptions options, @Nullable RowSet viewport, boolean reverseViewport, @Nullable RowSet keyspaceViewport, @Nullable BitSet subscribedColumns, @Nullable DictionaryWriterRegistry dictionaryRegistry) -
Method Summary
Modifier and TypeMethodDescription@Nullable DictionaryWriterRegistryReturns theDictionaryWriterRegistryfor this stream, ornullif no columns use dictionary encoding.voidforEachStream(Consumer<DefensiveDrainable> visitor) protected ByteBufferbooleanisColumnIncluded(int col) Whether this view writes the data of columncol.modRowOffsets(int col) options()
-
Constructor Details
-
SnapshotView
protected SnapshotView(BarrageSnapshotOptions options, @Nullable @Nullable RowSet viewport, boolean reverseViewport, @Nullable @Nullable RowSet keyspaceViewport, @Nullable @Nullable BitSet subscribedColumns, @Nullable @Nullable DictionaryWriterRegistry dictionaryRegistry)
-
-
Method Details
-
isColumnIncluded
public boolean isColumnIncluded(int col) Description copied from interface:BarrageMessageWriterImpl.RecordBatchMessageViewWhether 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.- Specified by:
isColumnIncludedin interfaceBarrageMessageWriterImpl.RecordBatchMessageView- Parameters:
col- the column's index in the message- Returns:
- whether the view writes the column's added and modified rows
-
dictionaryRegistry
Description copied from interface:BarrageMessageWriterImpl.RecordBatchMessageViewReturns 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.- Specified by:
dictionaryRegistryin interfaceBarrageMessageWriterImpl.RecordBatchMessageView
-
forEachStream
- Specified by:
forEachStreamin interfaceBarrageMessageWriter.MessageView- Throws:
IOException
-
options
- Specified by:
optionsin interfaceBarrageMessageWriterImpl.RecordBatchMessageView
-
addRowOffsets
- Specified by:
addRowOffsetsin interfaceBarrageMessageWriterImpl.RecordBatchMessageView
-
modRowOffsets
- Specified by:
modRowOffsetsin interfaceBarrageMessageWriterImpl.RecordBatchMessageView
-
getSnapshotMetadata
- Throws:
IOException
-