public class SumReducer<T extends Number,R extends Number> extends Object implements AsyncResultsReducer<T,R>
T
into a result
R
.Modifier and Type | Field and Description |
---|---|
protected NumberHelper<R> |
redeuceHelper |
Constructor and Description |
---|
SumReducer(Class<R> reduceType) |
Modifier and Type | Method and Description |
---|---|
SumReducer |
ignoreExceptions()
Causes the reducer to ignore exceptions and just sum the results that succeeded.
|
R |
reduce(List<AsyncResult<T>> results) |
protected final NumberHelper<R extends Number> redeuceHelper
public SumReducer(Class<R> reduceType) throws IllegalArgumentException
IllegalArgumentException
public SumReducer ignoreExceptions()
Copyright © GigaSpaces.