Class SourceReaderTestBase.ValidatingSourceOutput

  • All Implemented Interfaces:
    org.apache.flink.api.common.eventtime.WatermarkOutput, org.apache.flink.api.connector.source.ReaderOutput<Integer>, org.apache.flink.api.connector.source.SourceOutput<Integer>
    Enclosing class:
    SourceReaderTestBase<SplitT extends org.apache.flink.api.connector.source.SourceSplit>

    public class SourceReaderTestBase.ValidatingSourceOutput
    extends Object
    implements org.apache.flink.api.connector.source.ReaderOutput<Integer>
    A source output that validates the output.
    • Constructor Detail

      • ValidatingSourceOutput

        public ValidatingSourceOutput()
    • Method Detail

      • collect

        public void collect​(Integer element)
        Specified by:
        collect in interface org.apache.flink.api.connector.source.ReaderOutput<Integer>
        Specified by:
        collect in interface org.apache.flink.api.connector.source.SourceOutput<Integer>
      • collect

        public void collect​(Integer element,
                            long timestamp)
        Specified by:
        collect in interface org.apache.flink.api.connector.source.ReaderOutput<Integer>
        Specified by:
        collect in interface org.apache.flink.api.connector.source.SourceOutput<Integer>
      • validate

        public void validate()
      • count

        public int count()
      • emitWatermark

        public void emitWatermark​(org.apache.flink.api.common.eventtime.Watermark watermark)
        Specified by:
        emitWatermark in interface org.apache.flink.api.connector.source.ReaderOutput<Integer>
        Specified by:
        emitWatermark in interface org.apache.flink.api.common.eventtime.WatermarkOutput
      • markIdle

        public void markIdle()
        Specified by:
        markIdle in interface org.apache.flink.api.connector.source.ReaderOutput<Integer>
        Specified by:
        markIdle in interface org.apache.flink.api.common.eventtime.WatermarkOutput
      • markActive

        public void markActive()
        Specified by:
        markActive in interface org.apache.flink.api.common.eventtime.WatermarkOutput
      • createOutputForSplit

        public org.apache.flink.api.connector.source.SourceOutput<Integer> createOutputForSplit​(String splitId)
        Specified by:
        createOutputForSplit in interface org.apache.flink.api.connector.source.ReaderOutput<Integer>
      • releaseOutputForSplit

        public void releaseOutputForSplit​(String splitId)
        Specified by:
        releaseOutputForSplit in interface org.apache.flink.api.connector.source.ReaderOutput<Integer>