List of usage examples for org.apache.hadoop.mapreduce Mapper interface-usage
From source file crunch.MaxTemperature.java
public class MaxTemperatureMapper extends MapReduceBase implements Mapper<LongWritable, Text, Text, IntWritable> { private static final int MISSING = 9999; public void map(LongWritable key, Text value, OutputCollector<Text, IntWritable> output, Reporter reporter) throws IOException {
From source file org.ahanna.DoubleConversionMapper.java
class DoubleConversionMapper extends MapReduceBase implements Mapper<Text, Text, Text, Text> { final String Digits = "(\\p{Digit}+)"; final String HexDigits = "(\\p{XDigit}+)"; // an exponent is 'e' or 'E' followed by an optionally // signed decimal integer. final String Exp = "[eE][+-]?" + Digits;