datafu.hourglass.mapreduce
Class AvroKeyValueIdentityMapper

java.lang.Object
  extended by org.apache.hadoop.mapreduce.Mapper<java.lang.Object,java.lang.Object,java.lang.Object,java.lang.Object>
      extended by datafu.hourglass.mapreduce.AvroKeyValueIdentityMapper

public class AvroKeyValueIdentityMapper
extends org.apache.hadoop.mapreduce.Mapper<java.lang.Object,java.lang.Object,java.lang.Object,java.lang.Object>

A mapper which outputs key-value pairs as-is. It assumes the input is an Avro record having "key" and "value" fields. The output is these exact same fields.

Author:
"Matthew Hayes"

Nested Class Summary
 
Nested classes/interfaces inherited from class org.apache.hadoop.mapreduce.Mapper
org.apache.hadoop.mapreduce.Mapper.Context
 
Constructor Summary
AvroKeyValueIdentityMapper()
           
 
Method Summary
protected  void map(java.lang.Object keyObj, java.lang.Object valueObj, org.apache.hadoop.mapreduce.Mapper.Context context)
           
 
Methods inherited from class org.apache.hadoop.mapreduce.Mapper
cleanup, run, setup
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AvroKeyValueIdentityMapper

public AvroKeyValueIdentityMapper()
Method Detail

map

protected void map(java.lang.Object keyObj,
                   java.lang.Object valueObj,
                   org.apache.hadoop.mapreduce.Mapper.Context context)
            throws java.io.IOException,
                   java.lang.InterruptedException
Overrides:
map in class org.apache.hadoop.mapreduce.Mapper<java.lang.Object,java.lang.Object,java.lang.Object,java.lang.Object>
Throws:
java.io.IOException
java.lang.InterruptedException


Matthew Hayes