Class ThroughputLogger<T>

java.lang.Object
de.robertmetzger.flink.utils.performance.ThroughputLogger<T>
All Implemented Interfaces:
Serializable, org.apache.flink.api.common.functions.FlatMapFunction<T,​Void>, org.apache.flink.api.common.functions.Function

public class ThroughputLogger<T> extends Object implements org.apache.flink.api.common.functions.FlatMapFunction<T,​Void>
See Also:
Serialized Form
  • Constructor Details

    • ThroughputLogger

      public ThroughputLogger(long logfreq)
  • Method Details

    • flatMap

      public void flatMap(T element, org.apache.flink.util.Collector<Void> collector) throws Exception
      Specified by:
      flatMap in interface org.apache.flink.api.common.functions.FlatMapFunction<T,​Void>
      Throws:
      Exception