public static final class KMeans.SelectNearestCenter extends MapFunction<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, setRuntimeContextclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitclose, getRuntimeContext, setRuntimeContextpublic void open(Configuration parameters) throws Exception
open in interface Functionopen in class AbstractFunctionExceptionpublic Tuple2<Integer,KMeans.Point> map(KMeans.Point p) throws Exception
map in interface GenericMap<KMeans.Point,Tuple2<Integer,KMeans.Point>>map in class MapFunction<KMeans.Point,Tuple2<Integer,KMeans.Point>>ExceptionCopyright © 2013–2014. All rights reserved.