K
- ID typeVV
- vertex value typeEV
- edge value typepublic class EdgeTargetDegree<K,VV,EV> extends GraphAlgorithmDelegatingDataSet<K,VV,EV,Edge<K,Tuple2<EV,LongValue>>>
Constructor and Description |
---|
EdgeTargetDegree() |
Modifier and Type | Method and Description |
---|---|
protected String |
getAlgorithmName()
Algorithms are identified by name rather than by class to allow subclassing.
|
protected boolean |
mergeConfiguration(GraphAlgorithmDelegatingDataSet other)
An algorithm must first test whether the configurations can be merged
before merging individual fields.
|
DataSet<Edge<K,Tuple2<EV,LongValue>>> |
runInternal(Graph<K,VV,EV> input)
The implementation of the algorithm, renamed from
GraphAlgorithm.run(Graph) . |
EdgeTargetDegree<K,VV,EV> |
setParallelism(int parallelism)
Override the operator parallelism.
|
EdgeTargetDegree<K,VV,EV> |
setReduceOnSourceId(boolean reduceOnSourceId)
The degree can be counted from either the edge source or target IDs.
|
equals, hashCode, run
public EdgeTargetDegree<K,VV,EV> setReduceOnSourceId(boolean reduceOnSourceId)
reduceOnSourceId
- set to true
if the input edge list
is sorted by target IDpublic EdgeTargetDegree<K,VV,EV> setParallelism(int parallelism)
parallelism
- operator parallelismprotected String getAlgorithmName()
GraphAlgorithmDelegatingDataSet
getAlgorithmName
in class GraphAlgorithmDelegatingDataSet<K,VV,EV,Edge<K,Tuple2<EV,LongValue>>>
protected boolean mergeConfiguration(GraphAlgorithmDelegatingDataSet other)
GraphAlgorithmDelegatingDataSet
mergeConfiguration
in class GraphAlgorithmDelegatingDataSet<K,VV,EV,Edge<K,Tuple2<EV,LongValue>>>
other
- the algorithm with which to compare and mergeCopyright © 2014–2017 The Apache Software Foundation. All rights reserved.