org.apache.mahout.cf.taste.hadoop.slopeone
Class SlopeOneDiffsToAveragesReducer

java.lang.Object
  extended by org.apache.hadoop.mapred.MapReduceBase
      extended by org.apache.mahout.cf.taste.hadoop.slopeone.SlopeOneDiffsToAveragesReducer
All Implemented Interfaces:
java.io.Closeable, org.apache.hadoop.mapred.JobConfigurable, org.apache.hadoop.mapred.Reducer<ItemItemWritable,org.apache.hadoop.io.FloatWritable,ItemItemWritable,org.apache.hadoop.io.FloatWritable>

public final class SlopeOneDiffsToAveragesReducer
extends org.apache.hadoop.mapred.MapReduceBase
implements org.apache.hadoop.mapred.Reducer<ItemItemWritable,org.apache.hadoop.io.FloatWritable,ItemItemWritable,org.apache.hadoop.io.FloatWritable>


Constructor Summary
SlopeOneDiffsToAveragesReducer()
           
 
Method Summary
 void reduce(ItemItemWritable key, java.util.Iterator<org.apache.hadoop.io.FloatWritable> values, org.apache.hadoop.mapred.OutputCollector<ItemItemWritable,org.apache.hadoop.io.FloatWritable> output, org.apache.hadoop.mapred.Reporter reporter)
           
 
Methods inherited from class org.apache.hadoop.mapred.MapReduceBase
close, configure
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.apache.hadoop.mapred.JobConfigurable
configure
 
Methods inherited from interface java.io.Closeable
close
 

Constructor Detail

SlopeOneDiffsToAveragesReducer

public SlopeOneDiffsToAveragesReducer()
Method Detail

reduce

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


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