org.apache.accumulo.examples.simple.mapreduce
Class TableToFile.TTFMapper

java.lang.Object
  extended by org.apache.hadoop.mapreduce.Mapper<Key,Value,org.apache.hadoop.io.NullWritable,org.apache.hadoop.io.Text>
      extended by org.apache.accumulo.examples.simple.mapreduce.TableToFile.TTFMapper
Enclosing class:
TableToFile

public static class TableToFile.TTFMapper
extends org.apache.hadoop.mapreduce.Mapper<Key,Value,org.apache.hadoop.io.NullWritable,org.apache.hadoop.io.Text>

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
TableToFile.TTFMapper()
           
 
Method Summary
 void map(Key row, Value data, 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

TableToFile.TTFMapper

public TableToFile.TTFMapper()
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.NullWritable,org.apache.hadoop.io.Text>
Throws:
IOException
InterruptedException


Copyright © 2012 The Apache Software Foundation. All Rights Reserved.