Class FinishedOnRestoreMainOperatorOutput<OUT>
- java.lang.Object
-
- org.apache.flink.streaming.runtime.tasks.FinishedOnRestoreMainOperatorOutput<OUT>
-
- All Implemented Interfaces:
Closeable
,AutoCloseable
,Output<OUT>
,WatermarkGaugeExposingOutput<OUT>
,Collector<OUT>
public class FinishedOnRestoreMainOperatorOutput<OUT> extends Object implements WatermarkGaugeExposingOutput<OUT>
A fake main operator output that skips all the following operators for finished on restored tasks.
-
-
Constructor Summary
Constructors Constructor Description FinishedOnRestoreMainOperatorOutput(RecordWriterOutput<?>[] streamOutputs)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
close()
Closes the collector.<X> void
collect(OutputTag<X> outputTag, StreamRecord<X> record)
Emits a record to the side output identified by the givenOutputTag
.void
collect(OUT record)
Emits a record.void
emitLatencyMarker(LatencyMarker latencyMarker)
void
emitRecordAttributes(RecordAttributes recordAttributes)
Emits aRecordAttributes
from an operator.void
emitWatermark(Watermark mark)
Emits aWatermark
from an operator.void
emitWatermarkStatus(WatermarkStatus watermarkStatus)
Gauge<Long>
getWatermarkGauge()
-
-
-
Constructor Detail
-
FinishedOnRestoreMainOperatorOutput
public FinishedOnRestoreMainOperatorOutput(RecordWriterOutput<?>[] streamOutputs)
-
-
Method Detail
-
collect
public void collect(OUT record)
Description copied from interface:Collector
Emits a record.
-
emitWatermark
public void emitWatermark(Watermark mark)
Description copied from interface:Output
Emits aWatermark
from 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.
- Specified by:
emitWatermark
in interfaceOutput<OUT>
-
emitWatermarkStatus
public void emitWatermarkStatus(WatermarkStatus watermarkStatus)
- Specified by:
emitWatermarkStatus
in interfaceOutput<OUT>
-
collect
public <X> void collect(OutputTag<X> outputTag, StreamRecord<X> record)
Description copied from interface:Output
Emits a record to the side output identified by the givenOutputTag
.
-
emitLatencyMarker
public void emitLatencyMarker(LatencyMarker latencyMarker)
- Specified by:
emitLatencyMarker
in interfaceOutput<OUT>
-
emitRecordAttributes
public void emitRecordAttributes(RecordAttributes recordAttributes)
Description copied from interface:Output
Emits aRecordAttributes
from an operator. This element is broadcast to all downstream operators.- Specified by:
emitRecordAttributes
in interfaceOutput<OUT>
-
close
public void close()
Description copied from interface:Collector
Closes the collector. If any data was buffered, that data will be flushed.
-
getWatermarkGauge
public Gauge<Long> getWatermarkGauge()
- Specified by:
getWatermarkGauge
in interfaceWatermarkGaugeExposingOutput<OUT>
-
-