Interface Output<T>
- Type Parameters:
T- The type of the elements that can be emitted.
- All Superinterfaces:
org.apache.flink.util.Collector<T>
- All Known Subinterfaces:
OutputWithChainingCheck<OUT>,WatermarkGaugeExposingOutput<T>
- All Known Implementing Classes:
CountingOutput,FinishedOnRestoreMainOperatorOutput,RecordWriterOutput,TimestampedCollector,TimestampedCollectorWithDeclaredVariable
@PublicEvolving
public interface Output<T>
extends org.apache.flink.util.Collector<T>
A
StreamOperator is supplied with an object of
this interface that can be used to emit elements and other messages, such as barriers and
watermarks, from an operator.-
Method Summary
Modifier and TypeMethodDescription<X> voidcollect(org.apache.flink.util.OutputTag<X> outputTag, StreamRecord<X> record) Emits a record to the side output identified by the givenOutputTag.voidemitLatencyMarker(LatencyMarker latencyMarker) voidemitRecordAttributes(RecordAttributes recordAttributes) Emits aRecordAttributesfrom an operator.voidemitWatermark(WatermarkEvent watermark) Emits aWatermarkfrom an operator, wrapped in aWatermarkEvent.voidemitWatermark(Watermark mark) Emits aWatermarkfrom an operator.voidemitWatermarkStatus(WatermarkStatus watermarkStatus) Methods inherited from interface org.apache.flink.util.Collector
close, collect
-
Method Details
-
emitWatermark
Emits aWatermarkfrom an operator. This watermark is broadcast to all downstream operators.A watermark specifies that no element with a timestamp lower or equal to the watermark timestamp will be emitted in the future.
-
emitWatermarkStatus
-
collect
Emits a record to the side output identified by the givenOutputTag.- Parameters:
record- The record to collect.
-
emitLatencyMarker
-
emitRecordAttributes
Emits aRecordAttributesfrom an operator. This element is broadcast to all downstream operators. -
emitWatermark
Emits aWatermarkfrom an operator, wrapped in aWatermarkEvent.
-