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