- All Implemented Interfaces:
- oracle.spatial.hadoop.vector.common.CommonReducer<ClusterInfo,RecordInfo,ClusterInfo,org.apache.hadoop.io.NullWritable>
public class KMeansCommonReducer
extends java.lang.Object
implements oracle.spatial.hadoop.vector.common.CommonReducer<ClusterInfo,RecordInfo,ClusterInfo,org.apache.hadoop.io.NullWritable>
Processes reduce groups which are composed of records mapped to a cluster.
For each group, it updates a cluster center based on its members locations, determines if the cluster center converges and emits the updated cluster information.