K - The type of the input keys as read by the internal input formatV - The type of the input values as read by the internal input formatpublic class JoinMapper<K,V> extends org.apache.hadoop.mapreduce.Mapper<org.apache.hadoop.io.NullWritable,org.apache.hadoop.mapreduce.lib.input.FileSplit,JoinGroupWritable,RecordInfo>
MultipleInputsFileSplitInputFormat needs to be set as the job's input format in order to read two different data sets.ConfigParams.PARTITIONING_RESULT.Partitioning.| Constructor and Description |
|---|
JoinMapper() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
map(org.apache.hadoop.io.NullWritable key, org.apache.hadoop.mapreduce.lib.input.FileSplit value, org.apache.hadoop.mapreduce.Mapper.Context context) |
protected void |
setup(org.apache.hadoop.mapreduce.Mapper.Context context) |
protected void setup(org.apache.hadoop.mapreduce.Mapper.Context context)
throws java.io.IOException,
java.lang.InterruptedException
setup in class org.apache.hadoop.mapreduce.Mapper<org.apache.hadoop.io.NullWritable,org.apache.hadoop.mapreduce.lib.input.FileSplit,JoinGroupWritable,RecordInfo>java.io.IOExceptionjava.lang.InterruptedException
protected void map(org.apache.hadoop.io.NullWritable key,
org.apache.hadoop.mapreduce.lib.input.FileSplit value,
org.apache.hadoop.mapreduce.Mapper.Context context)
throws java.io.IOException,
java.lang.InterruptedException
map in class org.apache.hadoop.mapreduce.Mapper<org.apache.hadoop.io.NullWritable,org.apache.hadoop.mapreduce.lib.input.FileSplit,JoinGroupWritable,RecordInfo>java.io.IOExceptionjava.lang.InterruptedException