public abstract class AbstractAggregator<M extends org.apache.hadoop.io.Writable,VERTEX extends Vertex<?,?,M>> extends Object implements Aggregator<M,VERTEX>
| Constructor and Description |
|---|
AbstractAggregator() |
| Modifier and Type | Method and Description |
|---|---|
void |
aggregate(VERTEX vertex,
M value)
Observes a value of a vertex after the compute method.
|
void |
aggregate(VERTEX vertex,
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(VERTEX vertex, M value)
public void aggregate(VERTEX vertex, M oldValue, M newValue)
public M finalizeAggregation()
public M getValue()
public org.apache.hadoop.io.IntWritable getTimesAggregated()
Copyright © 2008-2012 The Apache Software Foundation. All Rights Reserved.