Class CountingCollector<OUT>

java.lang.Object
org.apache.flink.runtime.operators.util.metrics.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 Details

    • CountingCollector

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

    • 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>