public static final class IncrementalSSSP.VertexDistanceUpdater extends GatherFunction<Long,Double,Double>
Constructor and Description |
---|
VertexDistanceUpdater() |
Modifier and Type | Method and Description |
---|---|
void |
updateVertex(Vertex<Long,Double> vertex,
MessageIterator<Double> inMessages)
This method is invoked once per vertex per superstep.
|
getBroadcastSet, getInDegree, getIterationAggregator, getNumberOfVertices, getOutDegree, getPreviousIterationAggregate, getSuperstepNumber, postSuperstep, preSuperstep, setNewVertexValue
public void updateVertex(Vertex<Long,Double> vertex, MessageIterator<Double> inMessages) throws Exception
GatherFunction
GatherFunction.setNewVertexValue(Object)
. If the vertex state is changed, it will trigger the sending of
messages via the ScatterFunction
.updateVertex
in class GatherFunction<Long,Double,Double>
vertex
- The vertex.inMessages
- The incoming messages to this vertex.Exception
- The computation may throw exceptions, which causes the superstep to fail.Copyright © 2014–2021 The Apache Software Foundation. All rights reserved.