T - element typepublic class Count<T> extends DataSetAnalyticBase<T,Long>
DataSet.env| Constructor and Description |
|---|
Count() |
| Modifier and Type | Method and Description |
|---|---|
Long |
getResult()
This method must be called after the program has executed.
|
Count<T> |
run(org.apache.flink.api.java.DataSet<T> input)
All
DataSetAnalytic processing must be terminated by an
OutputFormat and obtained via accumulators rather than
returned by a DataSet. |
execute, executepublic Count<T> run(org.apache.flink.api.java.DataSet<T> input) throws Exception
DataSetAnalyticDataSetAnalytic processing must be terminated by an
OutputFormat and obtained via accumulators rather than
returned by a DataSet.run in interface DataSetAnalytic<T,Long>run in class DataSetAnalyticBase<T,Long>input - input datasetExceptionpublic Long getResult()
DataSetAnalyticCopyright © 2014–2019 The Apache Software Foundation. All rights reserved.