org.unigram.likelike.validate
Class ValidationReducer
java.lang.Object
org.apache.hadoop.mapreduce.Reducer<org.apache.hadoop.io.LongWritable,org.apache.hadoop.io.Text,org.apache.hadoop.io.LongWritable,org.apache.hadoop.io.Text>
org.unigram.likelike.validate.ValidationReducer
public class ValidationReducer
- extends org.apache.hadoop.mapreduce.Reducer<org.apache.hadoop.io.LongWritable,org.apache.hadoop.io.Text,org.apache.hadoop.io.LongWritable,org.apache.hadoop.io.Text>
Nested classes/interfaces inherited from class org.apache.hadoop.mapreduce.Reducer |
org.apache.hadoop.mapreduce.Reducer.Context |
Method Summary |
void |
reduce(org.apache.hadoop.io.LongWritable candidate,
java.lang.Iterable<org.apache.hadoop.io.Text> values,
org.apache.hadoop.mapreduce.Reducer.Context context)
Reduce method. |
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 |
ValidationReducer
public ValidationReducer()
reduce
public void reduce(org.apache.hadoop.io.LongWritable candidate,
java.lang.Iterable<org.apache.hadoop.io.Text> values,
org.apache.hadoop.mapreduce.Reducer.Context context)
throws java.io.IOException,
java.lang.InterruptedException
- Reduce method.
- Overrides:
reduce
in class org.apache.hadoop.mapreduce.Reducer<org.apache.hadoop.io.LongWritable,org.apache.hadoop.io.Text,org.apache.hadoop.io.LongWritable,org.apache.hadoop.io.Text>
- Parameters:
candidate
- candidate idvalues
- targets and candidateFeaturecontext
- -
- 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,org.apache.hadoop.io.Text,org.apache.hadoop.io.LongWritable,org.apache.hadoop.io.Text>
- Parameters:
context
- -