K - graph ID typeVV - vertex value typeEV - edge value typepublic class EdgeMetrics<K extends Comparable<K>,VV,EV> extends GraphAnalyticBase<K,VV,EV,EdgeMetrics.Result>
| Modifier and Type | Class and Description |
|---|---|
static class |
EdgeMetrics.Result
Wraps edge metrics.
|
env, parallelism| Constructor and Description |
|---|
EdgeMetrics() |
| Modifier and Type | Method and Description |
|---|---|
EdgeMetrics.Result |
getResult()
This method must be called after the program has executed.
|
EdgeMetrics<K,VV,EV> |
run(Graph<K,VV,EV> input)
All
GraphAnalytic processing must be terminated by an
OutputFormat. |
EdgeMetrics<K,VV,EV> |
setReduceOnTargetId(boolean reduceOnTargetId)
The degree can be counted from either the edge source or target IDs.
|
execute, execute, setParallelismpublic EdgeMetrics<K,VV,EV> setReduceOnTargetId(boolean reduceOnTargetId)
reduceOnTargetId - set to true if the input edge list
is sorted by target IDpublic EdgeMetrics<K,VV,EV> 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.run in interface GraphAnalytic<K extends Comparable<K>,VV,EV,EdgeMetrics.Result>run in class GraphAnalyticBase<K extends Comparable<K>,VV,EV,EdgeMetrics.Result>input - input graphExceptionpublic EdgeMetrics.Result getResult()
GraphAnalyticCopyright © 2014–2019 The Apache Software Foundation. All rights reserved.