K
- ID typeVV
- vertex value typeEV
- edge value typepublic class EdgeTargetDegree<K,VV,EV> extends GraphAlgorithmWrappingDataSet<K,VV,EV,Edge<K,Tuple2<EV,LongValue>>>
parallelism
Constructor and Description |
---|
EdgeTargetDegree() |
Modifier and Type | Method and Description |
---|---|
protected void |
mergeConfiguration(GraphAlgorithmWrappingBase other)
Merge the other configuration into this algorithm's after the call to
GraphAlgorithmWrappingBase.canMergeConfigurationWith(org.apache.flink.graph.utils.proxy.GraphAlgorithmWrappingBase) has checked that the configurations
can be merged. |
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> |
setReduceOnSourceId(boolean reduceOnSourceId)
The degree can be counted from either the edge source or target IDs.
|
equals, hashCode, run
canMergeConfigurationWith, getAlgorithmName, setParallelism
public EdgeTargetDegree<K,VV,EV> setReduceOnSourceId(boolean reduceOnSourceId)
reduceOnSourceId
- set to true
if the input edge list
is sorted by target IDprotected void mergeConfiguration(GraphAlgorithmWrappingBase other)
GraphAlgorithmWrappingBase
GraphAlgorithmWrappingBase.canMergeConfigurationWith(org.apache.flink.graph.utils.proxy.GraphAlgorithmWrappingBase)
has checked that the configurations
can be merged.mergeConfiguration
in class GraphAlgorithmWrappingBase<K,VV,EV,DataSet<Edge<K,Tuple2<EV,LongValue>>>>
other
- the algorithm from which to merge configurationGraphAlgorithmWrappingBase.canMergeConfigurationWith(GraphAlgorithmWrappingBase)
Copyright © 2014–2020 The Apache Software Foundation. All rights reserved.