I
- Vertex idM
- Message datapublic interface MessageCombiner<I extends org.apache.hadoop.io.WritableComparable,M extends org.apache.hadoop.io.Writable>
Modifier and Type | Method and Description |
---|---|
void |
combine(I vertexIndex,
M originalMessage,
M messageToCombine)
Combine messageToCombine with originalMessage, by modifying
originalMessage.
|
M |
createInitialMessage()
Get the initial message.
|
void combine(I vertexIndex, M originalMessage, M messageToCombine)
vertexIndex
- Index of the vertex getting these messagesoriginalMessage
- The first message which we want to combine;
put the result of combining in this messagemessageToCombine
- The second message which we want to combine
(object may be reused - do not reference it or its
member objects)M createInitialMessage()
Copyright © 2011-2020 The Apache Software Foundation. All Rights Reserved.