org.apache.mahout.cf.taste.hadoop.cooccurence
Class ItemBigramGenerator.UserItemReducer
java.lang.Object
org.apache.hadoop.mapred.MapReduceBase
org.apache.mahout.cf.taste.hadoop.cooccurence.ItemBigramGenerator.UserItemReducer
- All Implemented Interfaces:
- java.io.Closeable, org.apache.hadoop.mapred.JobConfigurable, org.apache.hadoop.mapred.Reducer<org.apache.hadoop.io.VIntWritable,org.apache.hadoop.io.VIntWritable,org.apache.hadoop.io.VIntWritable,org.apache.hadoop.io.VIntWritable>
- Enclosing class:
- ItemBigramGenerator
public static class ItemBigramGenerator.UserItemReducer
- extends org.apache.hadoop.mapred.MapReduceBase
- implements org.apache.hadoop.mapred.Reducer<org.apache.hadoop.io.VIntWritable,org.apache.hadoop.io.VIntWritable,org.apache.hadoop.io.VIntWritable,org.apache.hadoop.io.VIntWritable>
Method Summary |
void |
reduce(org.apache.hadoop.io.VIntWritable user,
java.util.Iterator<org.apache.hadoop.io.VIntWritable> itemIterator,
org.apache.hadoop.mapred.OutputCollector<org.apache.hadoop.io.VIntWritable,org.apache.hadoop.io.VIntWritable> 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 |
ItemBigramGenerator.UserItemReducer
public ItemBigramGenerator.UserItemReducer()
reduce
public void reduce(org.apache.hadoop.io.VIntWritable user,
java.util.Iterator<org.apache.hadoop.io.VIntWritable> itemIterator,
org.apache.hadoop.mapred.OutputCollector<org.apache.hadoop.io.VIntWritable,org.apache.hadoop.io.VIntWritable> 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.VIntWritable,org.apache.hadoop.io.VIntWritable,org.apache.hadoop.io.VIntWritable,org.apache.hadoop.io.VIntWritable>
- Throws:
java.io.IOException
Copyright © 2008-2010 The Apache Software Foundation. All Rights Reserved.