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() |
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.IOExceptionjava.lang.InterruptedExceptionprotected 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.IOExceptionjava.lang.InterruptedExceptionCopyright © 2016 Oracle and/or its affiliates. All Rights Reserved.