Package org.apache.flink.api.java
Class Utils.CountHelper<T>
- java.lang.Object
-
- org.apache.flink.api.common.io.RichOutputFormat<T>
-
- org.apache.flink.api.java.Utils.CountHelper<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.CountHelper<T> extends org.apache.flink.api.common.io.RichOutputFormat<T>Utility sink function that counts elements and writes the count into an accumulator, from which it can be retrieved by the client. This sink is used by theDataSet.count()function.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description CountHelper(String id)
-
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
-
-