public class MinimumDoubleMessageCombiner extends Object implements MessageCombiner<org.apache.hadoop.io.WritableComparable,org.apache.hadoop.io.DoubleWritable>
DoubleWritable
.Constructor and Description |
---|
MinimumDoubleMessageCombiner() |
Modifier and Type | Method and Description |
---|---|
void |
combine(org.apache.hadoop.io.WritableComparable vertexIndex,
org.apache.hadoop.io.DoubleWritable originalMessage,
org.apache.hadoop.io.DoubleWritable messageToCombine)
Combine messageToCombine with originalMessage, by modifying
originalMessage.
|
org.apache.hadoop.io.DoubleWritable |
createInitialMessage()
Get the initial message.
|
public void combine(org.apache.hadoop.io.WritableComparable vertexIndex, org.apache.hadoop.io.DoubleWritable originalMessage, org.apache.hadoop.io.DoubleWritable messageToCombine)
MessageCombiner
combine
in interface MessageCombiner<org.apache.hadoop.io.WritableComparable,org.apache.hadoop.io.DoubleWritable>
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)public org.apache.hadoop.io.DoubleWritable createInitialMessage()
MessageCombiner
createInitialMessage
in interface MessageCombiner<org.apache.hadoop.io.WritableComparable,org.apache.hadoop.io.DoubleWritable>
Copyright © 2011-2020 The Apache Software Foundation. All Rights Reserved.