datafu.hourglass.mapreduce
Class AvroKeyValueIdentityMapper
java.lang.Object
org.apache.hadoop.mapreduce.Mapper<java.lang.Object,java.lang.Object,java.lang.Object,java.lang.Object>
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 classes/interfaces inherited from class org.apache.hadoop.mapreduce.Mapper |
org.apache.hadoop.mapreduce.Mapper.Context |
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 |
AvroKeyValueIdentityMapper
public AvroKeyValueIdentityMapper()
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