K - The type of the vertex idMessage - The type of the message sent between vertices along the edges.public abstract class MessageCombiner<K,Message> extends Object implements Serializable
VertexCentricIteration.| Constructor and Description |
|---|
MessageCombiner() |
| Modifier and Type | Method and Description |
|---|---|
abstract void |
combineMessages(MessageIterator<Message> messages)
Combines messages sent from different vertices to a target vertex.
|
void |
sendCombinedMessage(Message combinedMessage)
Sends the combined message to the target vertex.
|
public abstract void combineMessages(MessageIterator<Message> messages) throws Exception
messages - the input messages to combineExceptionCopyright © 2014–2019 The Apache Software Foundation. All rights reserved.