org.apache.accumulo.examples.simple.mapreduce
Class RowHash.HashDataMapper
java.lang.Object
org.apache.hadoop.mapreduce.Mapper<Key,Value,org.apache.hadoop.io.Text,Mutation>
org.apache.accumulo.examples.simple.mapreduce.RowHash.HashDataMapper
- Enclosing class:
- RowHash
public static class RowHash.HashDataMapper
- extends org.apache.hadoop.mapreduce.Mapper<Key,Value,org.apache.hadoop.io.Text,Mutation>
The Mapper class that given a row number, will generate the appropriate output line.
Nested classes/interfaces inherited from class org.apache.hadoop.mapreduce.Mapper |
org.apache.hadoop.mapreduce.Mapper.Context |
Method Summary |
void |
map(Key row,
Value data,
org.apache.hadoop.mapreduce.Mapper.Context context)
|
void |
setup(org.apache.hadoop.mapreduce.Mapper.Context job)
|
Methods inherited from class org.apache.hadoop.mapreduce.Mapper |
cleanup, run |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
RowHash.HashDataMapper
public RowHash.HashDataMapper()
map
public void map(Key row,
Value data,
org.apache.hadoop.mapreduce.Mapper.Context context)
throws IOException,
InterruptedException
- Overrides:
map
in class org.apache.hadoop.mapreduce.Mapper<Key,Value,org.apache.hadoop.io.Text,Mutation>
- Throws:
IOException
InterruptedException
setup
public void setup(org.apache.hadoop.mapreduce.Mapper.Context job)
- Overrides:
setup
in class org.apache.hadoop.mapreduce.Mapper<Key,Value,org.apache.hadoop.io.Text,Mutation>
Copyright © 2013 Apache Accumulo Project. All Rights Reserved.