public static final class KMeans.SelectNearestCenter extends org.apache.flink.api.common.functions.RichMapFunction<KMeans.Point,org.apache.flink.api.java.tuple.Tuple2<Integer,KMeans.Point>>
| Constructor and Description |
|---|
SelectNearestCenter() |
| Modifier and Type | Method and Description |
|---|---|
org.apache.flink.api.java.tuple.Tuple2<Integer,KMeans.Point> |
map(KMeans.Point p) |
void |
open(org.apache.flink.api.common.functions.OpenContext openContext)
Reads the centroid values from a broadcast variable into a collection.
|
public void open(org.apache.flink.api.common.functions.OpenContext openContext)
throws Exception
Exceptionpublic org.apache.flink.api.java.tuple.Tuple2<Integer,KMeans.Point> map(KMeans.Point p) throws Exception
map in interface org.apache.flink.api.common.functions.MapFunction<KMeans.Point,org.apache.flink.api.java.tuple.Tuple2<Integer,KMeans.Point>>map in class org.apache.flink.api.common.functions.RichMapFunction<KMeans.Point,org.apache.flink.api.java.tuple.Tuple2<Integer,KMeans.Point>>ExceptionCopyright © 2014–2024 The Apache Software Foundation. All rights reserved.