Class KMeans.CountAppender
- java.lang.Object
-
- org.apache.flink.examples.java.clustering.KMeans.CountAppender
-
- All Implemented Interfaces:
Serializable,org.apache.flink.api.common.functions.Function,org.apache.flink.api.common.functions.MapFunction<org.apache.flink.api.java.tuple.Tuple2<Integer,KMeans.Point>,org.apache.flink.api.java.tuple.Tuple3<Integer,KMeans.Point,Long>>
- Enclosing class:
- KMeans
public static final class KMeans.CountAppender extends Object implements org.apache.flink.api.common.functions.MapFunction<org.apache.flink.api.java.tuple.Tuple2<Integer,KMeans.Point>,org.apache.flink.api.java.tuple.Tuple3<Integer,KMeans.Point,Long>>
Appends a count variable to the tuple.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description CountAppender()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.apache.flink.api.java.tuple.Tuple3<Integer,KMeans.Point,Long>map(org.apache.flink.api.java.tuple.Tuple2<Integer,KMeans.Point> t)
-
-
-
Method Detail
-
map
public org.apache.flink.api.java.tuple.Tuple3<Integer,KMeans.Point,Long> map(org.apache.flink.api.java.tuple.Tuple2<Integer,KMeans.Point> t)
- Specified by:
mapin interfaceorg.apache.flink.api.common.functions.MapFunction<org.apache.flink.api.java.tuple.Tuple2<Integer,KMeans.Point>,org.apache.flink.api.java.tuple.Tuple3<Integer,KMeans.Point,Long>>
-
-