public static class LinearRegression.UpdateAccumulator extends Object implements ReduceFunction<Tuple2<LinearRegression.Params,Integer>>
Constructor and Description |
---|
UpdateAccumulator() |
Modifier and Type | Method and Description |
---|---|
Tuple2<LinearRegression.Params,Integer> |
reduce(Tuple2<LinearRegression.Params,Integer> val1,
Tuple2<LinearRegression.Params,Integer> val2)
The core method of ReduceFunction, combining two values into one value of the same type.
|
public Tuple2<LinearRegression.Params,Integer> reduce(Tuple2<LinearRegression.Params,Integer> val1, Tuple2<LinearRegression.Params,Integer> val2)
ReduceFunction
reduce
in interface ReduceFunction<Tuple2<LinearRegression.Params,Integer>>
val1
- The first value to combine.val2
- The second value to combine.Copyright © 2014–2021 The Apache Software Foundation. All rights reserved.