K
- The type of the input keysV
- The type of the input valuespublic class BinMapper<K,V> extends org.apache.hadoop.mapreduce.Mapper<K,V,org.apache.hadoop.io.LongWritable,RecordInfo>
Mapper
that maps input records to bins. The emitted key is the bin identifier and the value is a RecordInfo
containing the input record information. BinningConfig
information is expected to be found in the job configuration.Constructor and Description |
---|
BinMapper() |
Modifier and Type | Method and Description |
---|---|
protected void |
map(K key, V 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<K,V,org.apache.hadoop.io.LongWritable,RecordInfo>
java.io.IOException
java.lang.InterruptedException
protected void map(K key, V value, org.apache.hadoop.mapreduce.Mapper.Context context) throws java.io.IOException, java.lang.InterruptedException
map
in class org.apache.hadoop.mapreduce.Mapper<K,V,org.apache.hadoop.io.LongWritable,RecordInfo>
java.io.IOException
java.lang.InterruptedException