org.apache.mahout.cf.taste.hadoop.cooccurence
Class ItemSimilarityEstimator.ItemItemMapper
java.lang.Object
org.apache.hadoop.mapred.MapReduceBase
org.apache.mahout.cf.taste.hadoop.cooccurence.ItemSimilarityEstimator.ItemItemMapper
- All Implemented Interfaces:
- java.io.Closeable, org.apache.hadoop.mapred.JobConfigurable, org.apache.hadoop.mapred.Mapper<org.apache.hadoop.io.VIntWritable,org.apache.hadoop.io.VIntWritable,Bigram,Bigram>
- Enclosing class:
- ItemSimilarityEstimator
public static class ItemSimilarityEstimator.ItemItemMapper
- extends org.apache.hadoop.mapred.MapReduceBase
- implements org.apache.hadoop.mapred.Mapper<org.apache.hadoop.io.VIntWritable,org.apache.hadoop.io.VIntWritable,Bigram,Bigram>
Output K -> (item1, item2), V -> ONE
Method Summary |
void |
map(org.apache.hadoop.io.VIntWritable item1,
org.apache.hadoop.io.VIntWritable item2,
org.apache.hadoop.mapred.OutputCollector<Bigram,Bigram> 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 |
ItemSimilarityEstimator.ItemItemMapper
public ItemSimilarityEstimator.ItemItemMapper()
map
public void map(org.apache.hadoop.io.VIntWritable item1,
org.apache.hadoop.io.VIntWritable item2,
org.apache.hadoop.mapred.OutputCollector<Bigram,Bigram> output,
org.apache.hadoop.mapred.Reporter reporter)
throws java.io.IOException
- Specified by:
map
in interface org.apache.hadoop.mapred.Mapper<org.apache.hadoop.io.VIntWritable,org.apache.hadoop.io.VIntWritable,Bigram,Bigram>
- Throws:
java.io.IOException
Copyright © 2008-2010 The Apache Software Foundation. All Rights Reserved.