M
- Message typepublic class SumMessageCombiner<M extends org.apache.hadoop.io.Writable> extends Object implements MessageCombiner<org.apache.hadoop.io.WritableComparable,M>
Modifier and Type | Field and Description |
---|---|
static SumMessageCombiner<org.apache.hadoop.io.DoubleWritable> |
DOUBLE
DoubleWritable specialization
|
static SumMessageCombiner<org.apache.hadoop.io.FloatWritable> |
FLOAT
DoubleWritable specialization
|
static SumMessageCombiner<org.apache.hadoop.io.IntWritable> |
INT
IntWritable specialization
|
static SumMessageCombiner<org.apache.hadoop.io.LongWritable> |
LONG
LongWritable specialization
|
Constructor and Description |
---|
SumMessageCombiner(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 SumMessageCombiner<org.apache.hadoop.io.DoubleWritable> DOUBLE
public static final SumMessageCombiner<org.apache.hadoop.io.FloatWritable> FLOAT
public static final SumMessageCombiner<org.apache.hadoop.io.LongWritable> LONG
public static final SumMessageCombiner<org.apache.hadoop.io.IntWritable> INT
public SumMessageCombiner(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.Writable>
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.Writable>
Copyright © 2011-2020 The Apache Software Foundation. All Rights Reserved.