org.apache.mahout.cf.taste.hadoop.similarity.item
Class MostSimilarItemPairsMapper

java.lang.Object
  extended by org.apache.hadoop.mapreduce.Mapper<org.apache.hadoop.io.IntWritable,VectorWritable,EntityEntityWritable,org.apache.hadoop.io.DoubleWritable>
      extended by org.apache.mahout.cf.taste.hadoop.similarity.item.MostSimilarItemPairsMapper

public final class MostSimilarItemPairsMapper
extends org.apache.hadoop.mapreduce.Mapper<org.apache.hadoop.io.IntWritable,VectorWritable,EntityEntityWritable,org.apache.hadoop.io.DoubleWritable>


Nested Class Summary
 
Nested classes/interfaces inherited from class org.apache.hadoop.mapreduce.Mapper
org.apache.hadoop.mapreduce.Mapper.Context
 
Constructor Summary
MostSimilarItemPairsMapper()
           
 
Method Summary
protected  void map(org.apache.hadoop.io.IntWritable itemIDIndexWritable, VectorWritable similarityVector, org.apache.hadoop.mapreduce.Mapper.Context ctx)
           
protected  void setup(org.apache.hadoop.mapreduce.Mapper.Context ctx)
           
 
Methods inherited from class org.apache.hadoop.mapreduce.Mapper
cleanup, run
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MostSimilarItemPairsMapper

public MostSimilarItemPairsMapper()
Method Detail

setup

protected void setup(org.apache.hadoop.mapreduce.Mapper.Context ctx)
Overrides:
setup in class org.apache.hadoop.mapreduce.Mapper<org.apache.hadoop.io.IntWritable,VectorWritable,EntityEntityWritable,org.apache.hadoop.io.DoubleWritable>

map

protected void map(org.apache.hadoop.io.IntWritable itemIDIndexWritable,
                   VectorWritable similarityVector,
                   org.apache.hadoop.mapreduce.Mapper.Context ctx)
            throws java.io.IOException,
                   java.lang.InterruptedException
Overrides:
map in class org.apache.hadoop.mapreduce.Mapper<org.apache.hadoop.io.IntWritable,VectorWritable,EntityEntityWritable,org.apache.hadoop.io.DoubleWritable>
Throws:
java.io.IOException
java.lang.InterruptedException


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