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.RichFunction
open
in class org.apache.flink.api.common.functions.AbstractRichFunction
Exception
public 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>>
Exception
Copyright © 2014–2016 The Apache Software Foundation. All rights reserved.