public class IntSumReducer extends Object implements IgniteReducer<Integer,Integer>
| Constructor and Description |
|---|
IntSumReducer() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
collect(Integer e)
Collects given value.
|
Integer |
reduce()
Reduces collected values into one.
|
String |
toString() |
public boolean collect(Integer e)
false then IgniteReducer.reduce()
will be called right away. Otherwise caller will continue collecting until all
values are processed.collect in interface IgniteReducer<Integer,Integer>e - Value to collect.true to continue collecting, false to instruct caller to stop
collecting and call IgniteReducer.reduce() method.public Integer reduce()
reduce in interface IgniteReducer<Integer,Integer>
Follow @ApacheIgnite
Ignite Database and Caching Platform : ver. 2.8.1 Release Date : May 21 2020