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 TypeMethodDescriptionvoid
accept
(@NotNull WritableChunk<Values>... data) void
accept
(@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-columnchunks
ofvalues
.Ownership of
data
passes to the consumer, which must be sure toclose
each 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-columnchunks
ofvalues
.Ownership of all the chunks contained within
data
passes to the consumer, which must be sure toclose
each 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[])
.
-