K - ID typeVV - vertex value typeEV - edge value typepublic class EdgeSourceDegree<K,VV,EV> extends GraphAlgorithmWrappingDataSet<K,VV,EV,Edge<K,org.apache.flink.api.java.tuple.Tuple2<EV,org.apache.flink.types.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. |
org.apache.flink.api.java.DataSet<Edge<K,org.apache.flink.api.java.tuple.Tuple2<EV,org.apache.flink.types.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, runcanMergeConfigurationWith, getAlgorithmName, setParallelismpublic 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)
GraphAlgorithmWrappingBaseGraphAlgorithmWrappingBase.canMergeConfigurationWith(org.apache.flink.graph.utils.proxy.GraphAlgorithmWrappingBase) has checked that the configurations
can be merged.mergeConfiguration in class GraphAlgorithmWrappingBase<K,VV,EV,org.apache.flink.api.java.DataSet<Edge<K,org.apache.flink.api.java.tuple.Tuple2<EV,org.apache.flink.types.LongValue>>>>other - the algorithm from which to merge configurationGraphAlgorithmWrappingBase.canMergeConfigurationWith(GraphAlgorithmWrappingBase)public org.apache.flink.api.java.DataSet<Edge<K,org.apache.flink.api.java.tuple.Tuple2<EV,org.apache.flink.types.LongValue>>> runInternal(Graph<K,VV,EV> input) throws Exception
GraphAlgorithmWrappingDataSetGraphAlgorithm.run(Graph).runInternal in class GraphAlgorithmWrappingDataSet<K,VV,EV,Edge<K,org.apache.flink.api.java.tuple.Tuple2<EV,org.apache.flink.types.LongValue>>>input - the input graphExceptionCopyright © 2014–2019 The Apache Software Foundation. All rights reserved.