K - vertex ID typeOLD - old vertex value typeNEW - new vertex value typeEV - edge value typepublic class TranslateVertexValues<K,OLD,NEW,EV> extends GraphAlgorithmWrappingGraph<K,OLD,EV,K,NEW,EV>
Vertex values using the given TranslateFunction.parallelism| Constructor and Description |
|---|
TranslateVertexValues(TranslateFunction<OLD,NEW> translator)
Translate
Vertex 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,NEW,EV> |
runInternal(Graph<K,OLD,EV> input)
The implementation of the algorithm, renamed from
GraphAlgorithm.run(Graph). |
equals, hashCode, rungetAlgorithmName, mergeConfiguration, setParallelismpublic TranslateVertexValues(TranslateFunction<OLD,NEW> translator)
Vertex values using the given TranslateFunction.translator - implements conversion from OLD to NEWprotected boolean canMergeConfigurationWith(GraphAlgorithmWrappingBase other)
GraphAlgorithmWrappingBaseGraphAlgorithmWrappingBase.mergeConfiguration(org.apache.flink.graph.utils.proxy.GraphAlgorithmWrappingBase).canMergeConfigurationWith in class GraphAlgorithmWrappingBase<K,OLD,EV,Graph<K,NEW,EV>>other - the algorithm with which to compare configurationGraphAlgorithmWrappingBase.mergeConfiguration(GraphAlgorithmWrappingBase)public Graph<K,NEW,EV> runInternal(Graph<K,OLD,EV> input) throws Exception
GraphAlgorithmWrappingGraphGraphAlgorithm.run(Graph).runInternal in class GraphAlgorithmWrappingGraph<K,OLD,EV,K,NEW,EV>input - the input graphExceptionCopyright © 2014–2019 The Apache Software Foundation. All rights reserved.