org.apache.accumulo.examples.simple.mapreduce
Class RowHash.HashDataMapper

java.lang.Object
  extended by org.apache.hadoop.mapreduce.Mapper<Key,Value,org.apache.hadoop.io.Text,Mutation>
      extended by 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 Class Summary
 
Nested classes/interfaces inherited from class org.apache.hadoop.mapreduce.Mapper
org.apache.hadoop.mapreduce.Mapper.Context
 
Constructor Summary
RowHash.HashDataMapper()
           
 
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
 

Constructor Detail

RowHash.HashDataMapper

public RowHash.HashDataMapper()
Method Detail

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 © 2012 The Apache Software Foundation. All Rights Reserved.