public static final class CommunityDetection.VertexLabelUpdater<K> extends VertexUpdateFunction<K,Tuple2<Long,Double>,Tuple2<Long,Double>>
Constructor and Description |
---|
VertexLabelUpdater(Double delta) |
Modifier and Type | Method and Description |
---|---|
void |
updateVertex(Vertex<K,Tuple2<Long,Double>> vertex,
MessageIterator<Tuple2<Long,Double>> inMessages)
This method is invoked once per vertex per superstep.
|
getBroadcastSet, getInDegree, getIterationAggregator, getNumberOfVertices, getOutDegree, getPreviousIterationAggregate, getSuperstepNumber, postSuperstep, preSuperstep, setNewVertexValue
public VertexLabelUpdater(Double delta)
public void updateVertex(Vertex<K,Tuple2<Long,Double>> vertex, MessageIterator<Tuple2<Long,Double>> inMessages) throws Exception
VertexUpdateFunction
VertexUpdateFunction.setNewVertexValue(Object)
. If the vertex
state is changed, it will trigger the sending of messages via the MessagingFunction
.updateVertex
in class VertexUpdateFunction<K,Tuple2<Long,Double>,Tuple2<Long,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–2017 The Apache Software Foundation. All rights reserved.