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.configuration.Configuration parameters)
Reads the centroid values from a broadcast variable into a collection.
|
public void open(org.apache.flink.configuration.Configuration parameters)
throws Exception
open in interface org.apache.flink.api.common.functions.RichFunctionopen in class org.apache.flink.api.common.functions.AbstractRichFunctionExceptionpublic 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–2021 The Apache Software Foundation. All rights reserved.