Class FinishedOnRestoreMainOperatorOutput<OUT>

java.lang.Object
org.apache.flink.streaming.runtime.tasks.FinishedOnRestoreMainOperatorOutput<OUT>
All Implemented Interfaces:
Closeable, AutoCloseable, Output<OUT>, WatermarkGaugeExposingOutput<OUT>, org.apache.flink.util.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 Details

    • FinishedOnRestoreMainOperatorOutput

      public FinishedOnRestoreMainOperatorOutput(RecordWriterOutput<?>[] streamOutputs)
  • Method Details

    • collect

      public void collect(OUT record)
      Specified by:
      collect in interface org.apache.flink.util.Collector<OUT>
    • emitWatermark

      public void emitWatermark(Watermark mark)
      Description copied from interface: Output
      Emits a Watermark 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 interface Output<OUT>
    • emitWatermarkStatus

      public void emitWatermarkStatus(WatermarkStatus watermarkStatus)
      Specified by:
      emitWatermarkStatus in interface Output<OUT>
    • collect

      public <X> void collect(org.apache.flink.util.OutputTag<X> outputTag, StreamRecord<X> record)
      Description copied from interface: Output
      Emits a record to the side output identified by the given OutputTag.
      Specified by:
      collect in interface Output<OUT>
      record - The record to collect.
    • emitLatencyMarker

      public void emitLatencyMarker(LatencyMarker latencyMarker)
      Specified by:
      emitLatencyMarker in interface Output<OUT>
    • emitRecordAttributes

      public void emitRecordAttributes(RecordAttributes recordAttributes)
      Description copied from interface: Output
      Emits a RecordAttributes from an operator. This element is broadcast to all downstream operators.
      Specified by:
      emitRecordAttributes in interface Output<OUT>
    • emitWatermark

      public void emitWatermark(WatermarkEvent watermark)
      Description copied from interface: Output
      Emits a Watermark from an operator, wrapped in a WatermarkEvent.
      Specified by:
      emitWatermark in interface Output<OUT>
    • close

      public void close()
      Specified by:
      close in interface AutoCloseable
      Specified by:
      close in interface Closeable
      Specified by:
      close in interface org.apache.flink.util.Collector<OUT>
    • getWatermarkGauge

      public org.apache.flink.metrics.Gauge<Long> getWatermarkGauge()
      Specified by:
      getWatermarkGauge in interface WatermarkGaugeExposingOutput<OUT>