T - Type of elements to count.public static class Utils.CollectHelper<T>
extends org.apache.flink.api.common.io.RichOutputFormat<T>
DataSet.collect() function.| Constructor and Description |
|---|
CollectHelper(String id,
org.apache.flink.api.common.typeutils.TypeSerializer<T> serializer) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
void |
configure(org.apache.flink.configuration.Configuration parameters) |
void |
open(int taskNumber,
int numTasks) |
void |
writeRecord(T record) |
public void configure(org.apache.flink.configuration.Configuration parameters)
public void open(int taskNumber,
int numTasks)
public void writeRecord(T record) throws IOException
IOExceptionpublic void close()
Copyright © 2014–2021 The Apache Software Foundation. All rights reserved.