Class Utils.CollectHelper<T>

  • Type Parameters:
    T - Type of elements to count.
    All Implemented Interfaces:
    Serializable, org.apache.flink.api.common.io.OutputFormat<T>
    Enclosing class:
    Utils

    public static class Utils.CollectHelper<T>
    extends org.apache.flink.api.common.io.RichOutputFormat<T>
    Utility sink function that collects elements into an accumulator, from which it they can be retrieved by the client. This sink is used by the DataSet.collect() function.
    See Also:
    Serialized Form
    • Nested Class Summary

      • Nested classes/interfaces inherited from interface org.apache.flink.api.common.io.OutputFormat

        org.apache.flink.api.common.io.OutputFormat.InitializationContext
    • Constructor Summary

      Constructors 
      Constructor Description
      CollectHelper​(String id, org.apache.flink.api.common.typeutils.TypeSerializer<T> serializer)  
    • Constructor Detail

      • CollectHelper

        public CollectHelper​(String id,
                             org.apache.flink.api.common.typeutils.TypeSerializer<T> serializer)
    • Method Detail

      • configure

        public void configure​(org.apache.flink.configuration.Configuration parameters)
      • open

        public void open​(int taskNumber,
                         int numTasks)
      • close

        public void close()