K
- ID typeVV
- vertex value typeEV
- edge value typepublic class EdgeSourceDegree<K,VV,EV> extends GraphAlgorithmWrappingDataSet<K,VV,EV,Edge<K,Tuple2<EV,LongValue>>>
parallelism
Constructor and Description |
---|
EdgeSourceDegree() |
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) . |
EdgeSourceDegree<K,VV,EV> |
setReduceOnTargetId(boolean reduceOnTargetId)
The degree can be counted from either the edge source or target IDs.
|
equals, hashCode, run
canMergeConfigurationWith, getAlgorithmName, setParallelism
public EdgeSourceDegree<K,VV,EV> setReduceOnTargetId(boolean reduceOnTargetId)
reduceOnTargetId
- 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–2021 The Apache Software Foundation. All rights reserved.