M
- Message typepublic class MaxMessageCombiner<M extends org.apache.hadoop.io.WritableComparable> extends Object implements MessageCombiner<org.apache.hadoop.io.WritableComparable,M>
Modifier and Type | Field and Description |
---|---|
static MaxMessageCombiner<org.apache.hadoop.io.DoubleWritable> |
DOUBLE
DoubleWritable specialization
|
static MaxMessageCombiner<org.apache.hadoop.io.FloatWritable> |
FLOAT
DoubleWritable specialization
|
static MaxMessageCombiner<org.apache.hadoop.io.IntWritable> |
INT
IntWritable specialization
|
static MaxMessageCombiner<org.apache.hadoop.io.LongWritable> |
LONG
LongWritable specialization
|
Constructor and Description |
---|
MaxMessageCombiner(NumericTypeOps<M> typeOps)
Constructor
|
Modifier and Type | Method and Description |
---|---|
void |
combine(org.apache.hadoop.io.WritableComparable vertexIndex,
M originalMessage,
M messageToCombine)
Combine messageToCombine with originalMessage, by modifying
originalMessage.
|
M |
createInitialMessage()
Get the initial message.
|
public static final MaxMessageCombiner<org.apache.hadoop.io.DoubleWritable> DOUBLE
public static final MaxMessageCombiner<org.apache.hadoop.io.FloatWritable> FLOAT
public static final MaxMessageCombiner<org.apache.hadoop.io.LongWritable> LONG
public static final MaxMessageCombiner<org.apache.hadoop.io.IntWritable> INT
public MaxMessageCombiner(NumericTypeOps<M> typeOps)
typeOps
- Value type operationspublic void combine(org.apache.hadoop.io.WritableComparable vertexIndex, M originalMessage, M messageToCombine)
MessageCombiner
combine
in interface MessageCombiner<org.apache.hadoop.io.WritableComparable,M extends org.apache.hadoop.io.WritableComparable>
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 M createInitialMessage()
MessageCombiner
createInitialMessage
in interface MessageCombiner<org.apache.hadoop.io.WritableComparable,M extends org.apache.hadoop.io.WritableComparable>
Copyright © 2011-2020 The Apache Software Foundation. All Rights Reserved.