Class BarrageStreamReader
java.lang.Object
io.deephaven.extensions.barrage.util.BarrageStreamReader
- All Implemented Interfaces:
StreamReader
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionsafelyParseFrom
(StreamReaderOptions options, ChunkType[] columnChunkTypes, Class<?>[] columnTypes, Class<?>[] componentTypes, InputStream stream) Converts an InputStream to a BarrageMessage in the context of the provided parameters.void
setDeserializeTmConsumer
(LongConsumer deserializeTmConsumer)
-
Constructor Details
-
BarrageStreamReader
public BarrageStreamReader() -
BarrageStreamReader
-
-
Method Details
-
setDeserializeTmConsumer
-
safelyParseFrom
public BarrageMessage safelyParseFrom(StreamReaderOptions options, ChunkType[] columnChunkTypes, Class<?>[] columnTypes, Class<?>[] componentTypes, InputStream stream) Description copied from interface:StreamReader
Converts an InputStream to a BarrageMessage in the context of the provided parameters.- Specified by:
safelyParseFrom
in interfaceStreamReader
- Parameters:
options
- the options related to parsing this messagecolumnChunkTypes
- the types to use for each column chunkcolumnTypes
- the actual type for the columncomponentTypes
- the actual component type for the columnstream
- the input stream that holds the message to be parsed- Returns:
- a BarrageMessage filled out by the stream's payload
-