org.apache.mahout.clustering.topdown.postprocessor
Class ClusterOutputPostProcessorReducer
java.lang.Object
org.apache.hadoop.mapreduce.Reducer<org.apache.hadoop.io.Text,VectorWritable,org.apache.hadoop.io.Text,VectorWritable>
org.apache.mahout.clustering.topdown.postprocessor.ClusterOutputPostProcessorReducer
public class ClusterOutputPostProcessorReducer
- extends org.apache.hadoop.mapreduce.Reducer<org.apache.hadoop.io.Text,VectorWritable,org.apache.hadoop.io.Text,VectorWritable>
Reducer for post processing cluster output.
Nested classes/interfaces inherited from class org.apache.hadoop.mapreduce.Reducer |
org.apache.hadoop.mapreduce.Reducer.Context |
Method Summary |
protected void |
reduce(org.apache.hadoop.io.Text key,
Iterable<VectorWritable> values,
org.apache.hadoop.mapreduce.Reducer.Context context)
The key is the cluster id and the values contains the points in that cluster. |
Methods inherited from class org.apache.hadoop.mapreduce.Reducer |
cleanup, run, setup |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ClusterOutputPostProcessorReducer
public ClusterOutputPostProcessorReducer()
reduce
protected void reduce(org.apache.hadoop.io.Text key,
Iterable<VectorWritable> values,
org.apache.hadoop.mapreduce.Reducer.Context context)
throws IOException,
InterruptedException
- The key is the cluster id and the values contains the points in that cluster.
- Overrides:
reduce
in class org.apache.hadoop.mapreduce.Reducer<org.apache.hadoop.io.Text,VectorWritable,org.apache.hadoop.io.Text,VectorWritable>
- Throws:
IOException
InterruptedException
Copyright © 2008-2012 The Apache Software Foundation. All Rights Reserved.