Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Start working with aggregators

To start aggregating values from your vertices, is very easy and strait forward. From your vertex, use:

No Format

this.aggregate(index,value);

Get results

Inside your vertex, you can get the results of each aggregator by using this method:

...

To write your own aggregator, you have o extend AbstractAggregator class and implement the methods of #aggregate(M value) and #getValue(). For more, please see the default implemented aggregators in org.apache.hama.graph package.