public class FindNearestCenter extends ReduceFunction implements Serializable
| Constructor and Description |
|---|
FindNearestCenter() |
| Modifier and Type | Method and Description |
|---|---|
void |
combine(Iterator<Record> pointsWithDistance,
Collector<Record> out)
Computes a minimum aggregation on the distance of a data point to
cluster centers.
|
void |
reduce(Iterator<Record> pointsWithDistance,
Collector<Record> out)
Computes a minimum aggregation on the distance of a data point to
cluster centers.
|
close, getIterationRuntimeContext, getRuntimeContext, open, setRuntimeContextclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitclose, getRuntimeContext, open, setRuntimeContextpublic void reduce(Iterator<Record> pointsWithDistance, Collector<Record> out)
reduce in interface GenericReducer<Record,Record>reduce in class ReduceFunctionpublic void combine(Iterator<Record> pointsWithDistance, Collector<Record> out)
combine in interface GenericReducer<Record,Record>combine in class ReduceFunctionCopyright © 2013. All rights reserved.