K - key typeVV - vertex value typeEV - edge value typeT - the return typepublic abstract class GraphAnalyticBase<K,VV,EV,T> extends Object implements GraphAnalytic<K,VV,EV,T>
GraphAnalytic.| Modifier and Type | Field and Description |
|---|---|
protected org.apache.flink.api.java.ExecutionEnvironment |
env |
protected int |
parallelism |
| Constructor and Description |
|---|
GraphAnalyticBase() |
| Modifier and Type | Method and Description |
|---|---|
T |
execute()
Execute the program and return the result.
|
T |
execute(String jobName)
Execute the program and return the result.
|
GraphAnalytic<K,VV,EV,T> |
run(Graph<K,VV,EV> input)
All
GraphAnalytic processing must be terminated by an
OutputFormat. |
GraphAnalyticBase<K,VV,EV,T> |
setParallelism(int parallelism)
Set the parallelism for this analytic's operators.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetResultprotected org.apache.flink.api.java.ExecutionEnvironment env
protected int parallelism
public GraphAnalytic<K,VV,EV,T> run(Graph<K,VV,EV> input) throws Exception
GraphAnalyticGraphAnalytic processing must be terminated by an
OutputFormat. Rather than obtained via accumulators rather than
returned by a DataSet.public GraphAnalyticBase<K,VV,EV,T> setParallelism(int parallelism)
Operator parallelism should be set to this given value unless processing asymptotically more data, in which case the default job parallelism should be inherited.
parallelism - operator parallelismpublic T execute() throws Exception
GraphAnalyticCopyright © 2014–2019 The Apache Software Foundation. All rights reserved.