public abstract class AbstractAggregator<M extends org.apache.hadoop.io.Writable> extends Object implements Aggregator<M>
| Constructor and Description |
|---|
AbstractAggregator() |
| Modifier and Type | Method and Description |
|---|---|
void |
aggregate(M value)
Observes a value of a vertex after the compute method.
|
void |
aggregate(M oldValue,
M newValue)
Observes the old value of a vertex and the new value at the same time.
|
M |
finalizeAggregation()
Finalizes the aggregation on a master task.
|
org.apache.hadoop.io.IntWritable |
getTimesAggregated() |
M |
getValue()
Gets the value of the aggregator.
|
String |
toString() |
public void aggregate(M value)
aggregate in interface Aggregator<M extends org.apache.hadoop.io.Writable>public void aggregate(M oldValue, M newValue)
public M finalizeAggregation()
public M getValue()
getValue in interface Aggregator<M extends org.apache.hadoop.io.Writable>public org.apache.hadoop.io.IntWritable getTimesAggregated()
Copyright © 2008-2014 The Apache Software Foundation. All Rights Reserved.