hama-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Apache Wiki <wikidi...@apache.org>
Subject [Hama Wiki] Update of "Aggregators" by AnastasisAndronidis
Date Sun, 26 Jan 2014 18:35:39 GMT
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.

Mime
View raw message