public static final class ConnectedComponents.CCMessenger<K> extends MessagingFunction<K,Long,Long,NullValue>
Constructor and Description |
---|
CCMessenger() |
Modifier and Type | Method and Description |
---|---|
void |
sendMessages(Vertex<K,Long> vertex)
This method is invoked once per superstep for each vertex that was changed in that superstep.
|
getBroadcastSet, getDirection, getEdges, getInDegree, getIterationAggregator, getNumberOfVertices, getOutDegree, getPreviousIterationAggregate, getSuperstepNumber, postSuperstep, preSuperstep, sendMessageTo, sendMessageToAllNeighbors
public void sendMessages(Vertex<K,Long> vertex) throws Exception
MessagingFunction
sendMessages
in class MessagingFunction<K,Long,Long,NullValue>
vertex
- The vertex that was changed.Exception
- The computation may throw exceptions, which causes the superstep to fail.Copyright © 2014–2017 The Apache Software Foundation. All rights reserved.