T - element typeR - the return typepublic interface DataSetAnalytic<T,R>
DataSetAnalytic is similar to a CustomUnaryOperation but
is terminal and results are retrieved via accumulators. A Flink program has
a single point of execution. A DataSetAnalytic defers execution to
the user to allow composing multiple analytics and algorithms into a single
program.| Modifier and Type | Method and Description |
|---|---|
R |
execute()
Execute the program and return the result.
|
R |
execute(String jobName)
Execute the program and return the result.
|
R |
getResult()
This method must be called after the program has executed.
|
DataSetAnalytic<T,R> |
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. |
DataSetAnalytic<T,R> run(org.apache.flink.api.java.DataSet<T> input) throws Exception
DataSetAnalytic processing must be terminated by an
OutputFormat and obtained via accumulators rather than
returned by a DataSet.input - input datasetExceptionR execute() throws Exception
ExceptionR execute(String jobName) throws Exception
jobName - the name to assign to the jobExceptionR getResult()
Copyright © 2014–2019 The Apache Software Foundation. All rights reserved.