org.unigram.likelike.lsh
Class GetRecommendationsReducer

java.lang.Object
  extended by org.apache.hadoop.mapreduce.Reducer<org.apache.hadoop.io.LongWritable,Candidate,org.apache.hadoop.io.LongWritable,org.apache.hadoop.io.LongWritable>
      extended by org.unigram.likelike.lsh.GetRecommendationsReducer

public class GetRecommendationsReducer
extends org.apache.hadoop.mapreduce.Reducer<org.apache.hadoop.io.LongWritable,Candidate,org.apache.hadoop.io.LongWritable,org.apache.hadoop.io.LongWritable>

Reducer implementation. Extract pairs related to each other.


Nested Class Summary
 
Nested classes/interfaces inherited from class org.apache.hadoop.mapreduce.Reducer
org.apache.hadoop.mapreduce.Reducer.Context
 
Constructor Summary
GetRecommendationsReducer()
           
 
Method Summary
 void reduce(org.apache.hadoop.io.LongWritable key, java.lang.Iterable<Candidate> values, org.apache.hadoop.mapreduce.Reducer.Context context)
          reduce.
 void setup(org.apache.hadoop.mapreduce.Reducer.Context context)
          setup.
 
Methods inherited from class org.apache.hadoop.mapreduce.Reducer
cleanup, run
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GetRecommendationsReducer

public GetRecommendationsReducer()
Method Detail

reduce

public void reduce(org.apache.hadoop.io.LongWritable key,
                   java.lang.Iterable<Candidate> values,
                   org.apache.hadoop.mapreduce.Reducer.Context context)
            throws java.io.IOException,
                   java.lang.InterruptedException
reduce.

Overrides:
reduce in class org.apache.hadoop.mapreduce.Reducer<org.apache.hadoop.io.LongWritable,Candidate,org.apache.hadoop.io.LongWritable,org.apache.hadoop.io.LongWritable>
Parameters:
key - target
values - candidates
context - -
Throws:
java.io.IOException - -
java.lang.InterruptedException - -

setup

public final void setup(org.apache.hadoop.mapreduce.Reducer.Context context)
setup.

Overrides:
setup in class org.apache.hadoop.mapreduce.Reducer<org.apache.hadoop.io.LongWritable,Candidate,org.apache.hadoop.io.LongWritable,org.apache.hadoop.io.LongWritable>
Parameters:
context - contains Configuration object to get settings