public static final class KMeans.SelectNearestCenter extends RichMapFunction<KMeans.Point,Tuple2<Integer,KMeans.Point>>
Constructor and Description |
---|
SelectNearestCenter() |
Modifier and Type | Method and Description |
---|---|
Tuple2<Integer,KMeans.Point> |
map(KMeans.Point p) |
void |
open(Configuration parameters)
Reads the centroid values from a broadcast variable into a collection.
|
close, getIterationRuntimeContext, getRuntimeContext, setRuntimeContext
public void open(Configuration parameters) throws Exception
open
in interface RichFunction
open
in class AbstractRichFunction
Exception
public Tuple2<Integer,KMeans.Point> map(KMeans.Point p) throws Exception
map
in interface MapFunction<KMeans.Point,Tuple2<Integer,KMeans.Point>>
map
in class RichMapFunction<KMeans.Point,Tuple2<Integer,KMeans.Point>>
Exception
Copyright © 2015 The Apache Software Foundation. All rights reserved.