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=4&rev2=5

  
  There are lots of different aggregators and you can also make your own. Look 
for already implemented aggregators in org.apache.hama.graph package.
  
+ === Start working with aggregators ===
+ 
+ === Get results ===
+ Inside your vertex, you can get the results of each aggregator by using this 
method:
+ 
+ {{{
+ this.getAggregatedValue(0);
+ }}}
+ 
+ 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(value) and #getValue(). For more, please 
see the default implemented aggregators in org.apache.hama.graph package.
+ 

Reply via email to