Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
public T reduce(T value1,
The core method of ReduceFunction, combining two values into one value of the same type.
The reduce function is consecutively applied to all values of a group until only a single value remains.
- Specified by:
reduce in interface
value1 - The first value to combine.
value2 - The second value to combine.
- The combined value of both input values.
Copyright © 2014–2017 The Apache Software Foundation. All rights reserved.