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

java.lang.Object
  extended by org.apache.hadoop.mapreduce.Reducer<VarLongWritable,EntityPrefWritable,EntityEntityWritable,org.apache.hadoop.io.FloatWritable>
      extended by org.apache.mahout.cf.taste.hadoop.slopeone.SlopeOnePrefsToDiffsReducer

public final class SlopeOnePrefsToDiffsReducer
extends org.apache.hadoop.mapreduce.Reducer<VarLongWritable,EntityPrefWritable,EntityEntityWritable,org.apache.hadoop.io.FloatWritable>


Nested Class Summary
 
Nested classes/interfaces inherited from class org.apache.hadoop.mapreduce.Reducer
org.apache.hadoop.mapreduce.Reducer.Context
 
Constructor Summary
SlopeOnePrefsToDiffsReducer()
           
 
Method Summary
protected  void reduce(VarLongWritable key, java.lang.Iterable<EntityPrefWritable> values, org.apache.hadoop.mapreduce.Reducer.Context context)
           
 
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

SlopeOnePrefsToDiffsReducer

public SlopeOnePrefsToDiffsReducer()
Method Detail

reduce

protected void reduce(VarLongWritable key,
                      java.lang.Iterable<EntityPrefWritable> values,
                      org.apache.hadoop.mapreduce.Reducer.Context context)
               throws java.io.IOException,
                      java.lang.InterruptedException
Overrides:
reduce in class org.apache.hadoop.mapreduce.Reducer<VarLongWritable,EntityPrefWritable,EntityEntityWritable,org.apache.hadoop.io.FloatWritable>
Throws:
java.io.IOException
java.lang.InterruptedException


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