org.apache.mahout.clustering.kmeans
Class KMeansReducer

java.lang.Object
  extended by org.apache.hadoop.mapred.MapReduceBase
      extended by org.apache.mahout.clustering.kmeans.KMeansReducer
All Implemented Interfaces:
java.io.Closeable, org.apache.hadoop.mapred.JobConfigurable, org.apache.hadoop.mapred.Reducer<org.apache.hadoop.io.Text,KMeansInfo,org.apache.hadoop.io.Text,Cluster>

public class KMeansReducer
extends org.apache.hadoop.mapred.MapReduceBase
implements org.apache.hadoop.mapred.Reducer<org.apache.hadoop.io.Text,KMeansInfo,org.apache.hadoop.io.Text,Cluster>


Constructor Summary
KMeansReducer()
           
 
Method Summary
 void config(java.util.List<Cluster> clusters)
           
 void configure(org.apache.hadoop.mapred.JobConf job)
           
 void reduce(org.apache.hadoop.io.Text key, java.util.Iterator<KMeansInfo> values, org.apache.hadoop.mapred.OutputCollector<org.apache.hadoop.io.Text,Cluster> output, org.apache.hadoop.mapred.Reporter reporter)
           
 
Methods inherited from class org.apache.hadoop.mapred.MapReduceBase
close
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface java.io.Closeable
close
 

Constructor Detail

KMeansReducer

public KMeansReducer()
Method Detail

reduce

public void reduce(org.apache.hadoop.io.Text key,
                   java.util.Iterator<KMeansInfo> values,
                   org.apache.hadoop.mapred.OutputCollector<org.apache.hadoop.io.Text,Cluster> output,
                   org.apache.hadoop.mapred.Reporter reporter)
            throws java.io.IOException
Specified by:
reduce in interface org.apache.hadoop.mapred.Reducer<org.apache.hadoop.io.Text,KMeansInfo,org.apache.hadoop.io.Text,Cluster>
Throws:
java.io.IOException

configure

public void configure(org.apache.hadoop.mapred.JobConf job)
Specified by:
configure in interface org.apache.hadoop.mapred.JobConfigurable
Overrides:
configure in class org.apache.hadoop.mapred.MapReduceBase

config

public void config(java.util.List<Cluster> clusters)


Copyright © 2008-2010 The Apache Software Foundation. All Rights Reserved.