Class CountingCollector<OUT>

  • All Implemented Interfaces:
    org.apache.flink.util.Collector<OUT>

    public class CountingCollector<OUT>
    extends Object
    implements org.apache.flink.util.Collector<OUT>
    • Constructor Detail

      • CountingCollector

        public CountingCollector​(org.apache.flink.util.Collector<OUT> collector,
                                 org.apache.flink.metrics.Counter numRecordsOut)
    • Method Detail

      • collect

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

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