org.apache.mahout.clustering.topdown.postprocessor
Class ClusterOutputPostProcessorReducer

java.lang.Object
  extended by org.apache.hadoop.mapreduce.Reducer<org.apache.hadoop.io.Text,VectorWritable,org.apache.hadoop.io.Text,VectorWritable>
      extended by 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 Class Summary
 
Nested classes/interfaces inherited from class org.apache.hadoop.mapreduce.Reducer
org.apache.hadoop.mapreduce.Reducer.Context
 
Constructor Summary
ClusterOutputPostProcessorReducer()
           
 
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
 

Constructor Detail

ClusterOutputPostProcessorReducer

public ClusterOutputPostProcessorReducer()
Method Detail

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.