Package io.deephaven.stream
Interface StreamConsumer
- All Superinterfaces:
StreamFailureConsumer
- All Known Implementing Classes:
StreamToBlinkTableAdapter
Chunk-oriented consumer for streams of data.
-
Method Summary
Modifier and TypeMethodDescriptionvoidaccept(@NotNull WritableChunk<Values>... data) voidaccept(@NotNull Collection<WritableChunk<Values>[]> data) Methods inherited from interface io.deephaven.stream.StreamFailureConsumer
acceptFailure
-
Method Details
-
accept
Accept a batch of rows splayed across per-columnchunksofvalues.Ownership of
datapasses to the consumer, which must be sure tocloseeach chunk when it's no longer needed.Implementations will generally have a mechanism for determining the expected number and type of input chunks, but this is not dictated at the interface level.
-
accept
Accept a collection of batches of rows splayed across per-columnchunksofvalues.Ownership of all the chunks contained within
datapasses to the consumer, which must be sure tocloseeach chunk when it's no longer needed.Implementations will generally have a mechanism for determining the expected number and type of input chunks for each element, but this is not dictated at the interface level.
Implementations may provide more specific semantics about this method in comparison to repeated invocations of
accept(WritableChunk[]).
-