public class RecomputeClusterCenter extends ReduceFunction implements Serializable
| Constructor and Description |
|---|
RecomputeClusterCenter() |
| Modifier and Type | Method and Description |
|---|---|
void |
combine(Iterator<Record> dataPoints,
Collector<Record> out)
Computes a pre-aggregated average value of a coordinate vector.
|
void |
reduce(Iterator<Record> dataPoints,
Collector<Record> out)
Compute the new position (coordinate vector) of a cluster center.
|
close, getIterationRuntimeContext, getRuntimeContext, open, setRuntimeContextclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitclose, getRuntimeContext, open, setRuntimeContextpublic void reduce(Iterator<Record> dataPoints, Collector<Record> out)
reduce in interface GenericReducer<Record,Record>reduce in class ReduceFunctionpublic void combine(Iterator<Record> dataPoints, Collector<Record> out)
combine in interface GenericReducer<Record,Record>combine in class ReduceFunctionCopyright © 2013. All rights reserved.