Dear Wiki user,

You have subscribed to a wiki page or wiki category on "Hama Wiki" for change 
notification.

The "Aggregators" page has been changed by AnastasisAndronidis:
https://wiki.apache.org/hama/Aggregators?action=diff&rev1=6&rev2=7

  this.aggregate(index,value);
  }}}
  
+ The index parameter of this method is a number that is equivalent to the 
order of the registered aggregator. (The first registered aggregator is number 
0, second is number 1 etc.)
  
  === Get results ===
  Inside your vertex, you can get the results of each aggregator by using this 
method:
  
  {{{
- this.getAggregatedValue(0);
+ this.getAggregatedValue(index);
  }}}
- 
- The parameter of this method is a number that is equivalent to the order of 
the registered aggregator. (The first registered aggregator is number 0, second 
is number 1 etc.)
  
  === Write your own aggregators ===
  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.

Reply via email to