Class KMeans.CentroidAccumulator
- java.lang.Object
-
- org.apache.flink.examples.java.clustering.KMeans.CentroidAccumulator
-
- All Implemented Interfaces:
Serializable,org.apache.flink.api.common.functions.Function,org.apache.flink.api.common.functions.ReduceFunction<org.apache.flink.api.java.tuple.Tuple3<Integer,KMeans.Point,Long>>
- Enclosing class:
- KMeans
public static final class KMeans.CentroidAccumulator extends Object implements org.apache.flink.api.common.functions.ReduceFunction<org.apache.flink.api.java.tuple.Tuple3<Integer,KMeans.Point,Long>>
Sums and counts point coordinates.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description CentroidAccumulator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.apache.flink.api.java.tuple.Tuple3<Integer,KMeans.Point,Long>reduce(org.apache.flink.api.java.tuple.Tuple3<Integer,KMeans.Point,Long> val1, org.apache.flink.api.java.tuple.Tuple3<Integer,KMeans.Point,Long> val2)
-
-
-
Method Detail
-
reduce
public org.apache.flink.api.java.tuple.Tuple3<Integer,KMeans.Point,Long> reduce(org.apache.flink.api.java.tuple.Tuple3<Integer,KMeans.Point,Long> val1, org.apache.flink.api.java.tuple.Tuple3<Integer,KMeans.Point,Long> val2)
- Specified by:
reducein interfaceorg.apache.flink.api.common.functions.ReduceFunction<org.apache.flink.api.java.tuple.Tuple3<Integer,KMeans.Point,Long>>
-
-