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