public class GraphMetrics<K extends Comparable<K>,VV,EV> extends DriverBase<K,VV,EV>
org.apache.flink.graph.library.metric.directed.EdgeMetrics,
org.apache.flink.graph.library.metric.directed.VertexMetrics,
org.apache.flink.graph.library.metric.undirected.EdgeMetrics,
org.apache.flink.graph.library.metric.undirected.VertexMetricsparallelism| Constructor and Description |
|---|
GraphMetrics() |
| Modifier and Type | Method and Description |
|---|---|
String |
getLongDescription()
A multi-line description, presented in the algorithm usage.
|
String |
getShortDescription()
A one-line description, presented in the algorithm listing.
|
org.apache.flink.api.java.DataSet |
plan(org.apache.flink.graph.Graph<K,VV,EV> graph)
"Run" algorithms and analytics on the input graph.
|
void |
printAnalytics(PrintStream out)
Analytic results are summaries so are always printed to the console irrespective of the
chosen
Output. |
addParameter, configure, getName, getUsageclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitconfigure, getName, getUsagepublic String getShortDescription()
Driverpublic String getLongDescription()
Driverpublic org.apache.flink.api.java.DataSet plan(org.apache.flink.graph.Graph<K,VV,EV> graph) throws Exception
DriverDrivers are first configured, next planned, and finally the chosen output method is called.
A null value should be returned when the Driver does not execute a GraphAlgorithm but only executes a GraphAnalytic.
graph - input graphException - on errorpublic void printAnalytics(PrintStream out)
DriverOutput.printAnalytics in interface Driver<K extends Comparable<K>,VV,EV>printAnalytics in class DriverBase<K extends Comparable<K>,VV,EV>out - output stream for printing resultsCopyright © 2014–2022 The Apache Software Foundation. All rights reserved.