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:34:52 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=5&rev2=6

  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 ===
+ To start aggregating values from your vertices, is very easy and strait forward. From your
vertex, use:
+ {{{
+ this.aggregate(index,value);
+ }}}
+ 
  
  === Get results ===
  Inside your vertex, you can get the results of each aggregator by using this method:
@@ -36, +41 @@

  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.
+ 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