org.apache.hadoop.examples
Class SecondarySort.MapClass
java.lang.Object
org.apache.hadoop.mapreduce.Mapper<org.apache.hadoop.io.LongWritable,org.apache.hadoop.io.Text,SecondarySort.IntPair,org.apache.hadoop.io.IntWritable>
org.apache.hadoop.examples.SecondarySort.MapClass
- Enclosing class:
- SecondarySort
public static class SecondarySort.MapClass
- extends org.apache.hadoop.mapreduce.Mapper<org.apache.hadoop.io.LongWritable,org.apache.hadoop.io.Text,SecondarySort.IntPair,org.apache.hadoop.io.IntWritable>
Read two integers from each line and generate a key, value pair
as ((left, right), right).
| Nested classes/interfaces inherited from class org.apache.hadoop.mapreduce.Mapper |
org.apache.hadoop.mapreduce.Mapper.Context |
|
Method Summary |
void |
map(org.apache.hadoop.io.LongWritable inKey,
org.apache.hadoop.io.Text inValue,
org.apache.hadoop.mapreduce.Mapper.Context context)
|
| 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 |
SecondarySort.MapClass
public SecondarySort.MapClass()
map
public void map(org.apache.hadoop.io.LongWritable inKey,
org.apache.hadoop.io.Text inValue,
org.apache.hadoop.mapreduce.Mapper.Context context)
throws IOException,
InterruptedException
- Overrides:
map in class org.apache.hadoop.mapreduce.Mapper<org.apache.hadoop.io.LongWritable,org.apache.hadoop.io.Text,SecondarySort.IntPair,org.apache.hadoop.io.IntWritable>
- Throws:
IOException
InterruptedException
Copyright © 2012 Apache Software Foundation. All Rights Reserved.