public static final class PiEstimation.SumReducer extends Object implements ReduceFunction<Long>
Constructor and Description |
---|
SumReducer() |
Modifier and Type | Method and Description |
---|---|
Long |
reduce(Long value1,
Long value2)
The core method of ReduceFunction, combining two values into one value of the same type.
|
public Long reduce(Long value1, Long value2)
ReduceFunction
reduce
in interface ReduceFunction<Long>
value1
- The first value to combine.value2
- The second value to combine.Copyright © 2014–2024 The Apache Software Foundation. All rights reserved.