Package org.apache.flink.api.java
Class Utils.CollectHelper<T>
- java.lang.Object
-
- org.apache.flink.api.common.io.RichOutputFormat<T>
-
- org.apache.flink.api.java.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 theDataSet.collect()function.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description CollectHelper(String id, org.apache.flink.api.common.typeutils.TypeSerializer<T> serializer)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()voidconfigure(org.apache.flink.configuration.Configuration parameters)voidopen(int taskNumber, int numTasks)voidwriteRecord(T record)-
Methods inherited from class org.apache.flink.api.common.io.RichOutputFormat
getRuntimeContext, setRuntimeContext
-
-
-
-
Method Detail
-
configure
public void configure(org.apache.flink.configuration.Configuration parameters)
-
open
public void open(int taskNumber, int numTasks)
-
writeRecord
public void writeRecord(T record) throws IOException
- Throws:
IOException
-
close
public void close()
-
-