K
- vertex ID typeVV
- vertex value typeOLD
- old edge value typeNEW
- new edge value typepublic class TranslateEdgeValues<K,VV,OLD,NEW> extends GraphAlgorithmWrappingGraph<K,VV,OLD,K,VV,NEW>
Edge
values using the given TranslateFunction
.parallelism
Constructor and Description |
---|
TranslateEdgeValues(TranslateFunction<OLD,NEW> translator)
Translate
Edge values using the given TranslateFunction . |
Modifier and Type | Method and Description |
---|---|
protected boolean |
canMergeConfigurationWith(GraphAlgorithmWrappingBase other)
First test whether the algorithm configurations can be merged before the
call to
GraphAlgorithmWrappingBase.mergeConfiguration(org.apache.flink.graph.utils.proxy.GraphAlgorithmWrappingBase) . |
Graph<K,VV,NEW> |
runInternal(Graph<K,VV,OLD> input)
The implementation of the algorithm, renamed from
GraphAlgorithm.run(Graph) . |
equals, hashCode, run
getAlgorithmName, mergeConfiguration, setParallelism
public TranslateEdgeValues(TranslateFunction<OLD,NEW> translator)
Edge
values using the given TranslateFunction
.translator
- implements conversion from OLD
to NEW
protected boolean canMergeConfigurationWith(GraphAlgorithmWrappingBase other)
GraphAlgorithmWrappingBase
GraphAlgorithmWrappingBase.mergeConfiguration(org.apache.flink.graph.utils.proxy.GraphAlgorithmWrappingBase)
.canMergeConfigurationWith
in class GraphAlgorithmWrappingBase<K,VV,OLD,Graph<K,VV,NEW>>
other
- the algorithm with which to compare configurationGraphAlgorithmWrappingBase.mergeConfiguration(GraphAlgorithmWrappingBase)
public Graph<K,VV,NEW> runInternal(Graph<K,VV,OLD> input) throws Exception
GraphAlgorithmWrappingGraph
GraphAlgorithm.run(Graph)
.runInternal
in class GraphAlgorithmWrappingGraph<K,VV,OLD,K,VV,NEW>
input
- the input graphException
Copyright © 2014–2019 The Apache Software Foundation. All rights reserved.