OLD
- old graph ID typeNEW
- new graph ID typeVV
- vertex value typeEV
- edge value typepublic class TranslateGraphIds<OLD,NEW,VV,EV> extends GraphAlgorithmWrappingGraph<OLD,VV,EV,NEW,VV,EV>
Constructor and Description |
---|
TranslateGraphIds(TranslateFunction<OLD,NEW> translator)
|
Modifier and Type | Method and Description |
---|---|
protected String |
getAlgorithmName()
Algorithms are identified by name rather than by class to allow subclassing.
|
protected boolean |
mergeConfiguration(GraphAlgorithmWrappingGraph other)
An algorithm must first test whether the configurations can be merged
before merging individual fields.
|
Graph<NEW,VV,EV> |
runInternal(Graph<OLD,VV,EV> input)
The implementation of the algorithm, renamed from
GraphAlgorithm.run(Graph) . |
TranslateGraphIds<OLD,NEW,VV,EV> |
setParallelism(int parallelism)
Override the operator parallelism.
|
equals, hashCode, run
public TranslateGraphIds(TranslateFunction<OLD,NEW> translator)
translator
- implements conversion from OLD
to NEW
public TranslateGraphIds<OLD,NEW,VV,EV> setParallelism(int parallelism)
parallelism
- operator parallelismprotected String getAlgorithmName()
GraphAlgorithmWrappingGraph
getAlgorithmName
in class GraphAlgorithmWrappingGraph<OLD,VV,EV,NEW,VV,EV>
protected boolean mergeConfiguration(GraphAlgorithmWrappingGraph other)
GraphAlgorithmWrappingGraph
mergeConfiguration
in class GraphAlgorithmWrappingGraph<OLD,VV,EV,NEW,VV,EV>
other
- the algorithm with which to compare and mergepublic Graph<NEW,VV,EV> runInternal(Graph<OLD,VV,EV> input) throws Exception
GraphAlgorithmWrappingGraph
GraphAlgorithm.run(Graph)
.runInternal
in class GraphAlgorithmWrappingGraph<OLD,VV,EV,NEW,VV,EV>
input
- the input graphException
Copyright © 2014–2018 The Apache Software Foundation. All rights reserved.