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(DataSet<T> input)
All
DataSetAnalytic processing must be terminated by an
OutputFormat and obtained via accumulators rather than
returned by a DataSet . |
execute, execute
public Count<T> run(DataSet<T> input) throws Exception
DataSetAnalytic
DataSetAnalytic
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 datasetException
public Long getResult()
DataSetAnalytic
Copyright © 2014–2020 The Apache Software Foundation. All rights reserved.