org.unigram.likelike.lsh
Class GetRecommendationsMapper

java.lang.Object
  extended by org.apache.hadoop.mapreduce.Mapper<SeedClusterId,RelatedUsersWritable,org.apache.hadoop.io.LongWritable,Candidate>
      extended by org.unigram.likelike.lsh.GetRecommendationsMapper

public class GetRecommendationsMapper
extends org.apache.hadoop.mapreduce.Mapper<SeedClusterId,RelatedUsersWritable,org.apache.hadoop.io.LongWritable,Candidate>

Mapper.


Nested Class Summary
 
Nested classes/interfaces inherited from class org.apache.hadoop.mapreduce.Mapper
org.apache.hadoop.mapreduce.Mapper.Context
 
Constructor Summary
GetRecommendationsMapper()
           
 
Method Summary
 void map(SeedClusterId key, RelatedUsersWritable value, org.apache.hadoop.mapreduce.Mapper.Context context)
          Map method.
 
Methods inherited from class org.apache.hadoop.mapreduce.Mapper
cleanup, run, setup
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GetRecommendationsMapper

public GetRecommendationsMapper()
Method Detail

map

public final void map(SeedClusterId key,
                      RelatedUsersWritable value,
                      org.apache.hadoop.mapreduce.Mapper.Context context)
               throws java.io.IOException,
                      java.lang.InterruptedException
Map method.

Overrides:
map in class org.apache.hadoop.mapreduce.Mapper<SeedClusterId,RelatedUsersWritable,org.apache.hadoop.io.LongWritable,Candidate>
Parameters:
key - dummy
value - related users
context - for writing
Throws:
java.io.IOException - -
java.lang.InterruptedException - -