K
- The type of the input keysV
- The type of the input valuespublic class BinMapper<K,V> extends org.apache.hadoop.mapred.MapReduceBase implements org.apache.hadoop.mapred.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 |
---|---|
void |
configure(org.apache.hadoop.mapred.JobConf jobConf) |
void |
map(K key, V value, org.apache.hadoop.mapred.OutputCollector<org.apache.hadoop.io.LongWritable,RecordInfo> output, org.apache.hadoop.mapred.Reporter reporter) |
public void configure(org.apache.hadoop.mapred.JobConf jobConf)
configure
in interface org.apache.hadoop.mapred.JobConfigurable
configure
in class org.apache.hadoop.mapred.MapReduceBase
public void map(K key, V value, org.apache.hadoop.mapred.OutputCollector<org.apache.hadoop.io.LongWritable,RecordInfo> output, org.apache.hadoop.mapred.Reporter reporter) throws java.io.IOException
map
in interface org.apache.hadoop.mapred.Mapper<K,V,org.apache.hadoop.io.LongWritable,RecordInfo>
java.io.IOException
Copyright © 2016 Oracle and/or its affiliates. All Rights Reserved.