Interface PipelineEvent<K extends DataPointQueryKey>
- Type Parameters:
K- the key variant the event belongs to
- All Known Implementing Classes:
PipelineEvent.KeyComplete, PipelineEvent.KeyFailure, PipelineEvent.KeyOpen, PipelineEvent.Point, PipelineEvent.Watermark
public sealed interface PipelineEvent<K extends DataPointQueryKey>
permits PipelineEvent.KeyOpen<K>, PipelineEvent.Point<K,P>, PipelineEvent.Watermark<K>, PipelineEvent.KeyComplete<K>, PipelineEvent.KeyFailure<K>
An event flowing through the pipeline stages. Sealed so operators can match exhaustively over a
key's lifecycle:
PipelineEvent.KeyOpen, then any number of PipelineEvent.Point and PipelineEvent.Watermark, then
PipelineEvent.KeyComplete or PipelineEvent.KeyFailure.-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final recordPipelineEvent.KeyComplete<K extends DataPointQueryKey>Signals that the stream forPipelineEvent.KeyComplete.key()completed successfully.static final recordPipelineEvent.KeyFailure<K extends DataPointQueryKey>Signals that the stream forPipelineEvent.KeyFailure.key()failed with the given quality code.static final recordPipelineEvent.KeyOpen<K extends DataPointQueryKey>Signals that the stream of points forPipelineEvent.KeyOpen.key()has begun.static final recordPipelineEvent.Point<K extends DataPointQueryKey, P extends DataPoint<?>>Carries one point forPipelineEvent.Point.key().static final recordPipelineEvent.Watermark<K extends DataPointQueryKey>Advances the watermark forPipelineEvent.Watermark.key(): every later point has a timestamp at or afterPipelineEvent.Watermark.time(). -
Method Summary
-
Method Details
-
key
K key()Returns the key this event belongs to.
-