T
- Reducer element type.public class AlwaysTrueReducer<T> extends Object implements IgniteReducer<T,T>
true
from IgniteReducer.collect(Object)
Constructor and Description |
---|
AlwaysTrueReducer(T elem) |
public AlwaysTrueReducer(T elem)
elem
- Element to return from IgniteReducer.reduce()
method.public boolean collect(T e)
false
then IgniteReducer.reduce()
will be called right away. Otherwise caller will continue collecting until all
values are processed.collect
in interface IgniteReducer<T,T>
e
- Value to collect.true
to continue collecting, false
to instruct caller to stop
collecting and call IgniteReducer.reduce()
method.public T reduce()
reduce
in interface IgniteReducer<T,T>
Follow @ApacheIgnite
Ignite Fabric : ver. 2.3.0 Release Date : October 28 2017