org.apache.accumulo.examples.simple.filedata
Class CharacterHistogram.HistMapper

java.lang.Object
  extended by org.apache.hadoop.mapreduce.Mapper<List<Map.Entry<Key,Value>>,InputStream,org.apache.hadoop.io.Text,Mutation>
      extended by org.apache.accumulo.examples.simple.filedata.CharacterHistogram.HistMapper
Enclosing class:
CharacterHistogram

public static class CharacterHistogram.HistMapper
extends org.apache.hadoop.mapreduce.Mapper<List<Map.Entry<Key,Value>>,InputStream,org.apache.hadoop.io.Text,Mutation>


Nested Class Summary
 
Nested classes/interfaces inherited from class org.apache.hadoop.mapreduce.Mapper
org.apache.hadoop.mapreduce.Mapper.Context
 
Constructor Summary
CharacterHistogram.HistMapper()
           
 
Method Summary
 void map(List<Map.Entry<Key,Value>> k, InputStream v, org.apache.hadoop.mapreduce.Mapper.Context context)
           
protected  void setup(org.apache.hadoop.mapreduce.Mapper.Context context)
           
 
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

CharacterHistogram.HistMapper

public CharacterHistogram.HistMapper()
Method Detail

map

public void map(List<Map.Entry<Key,Value>> k,
                InputStream v,
                org.apache.hadoop.mapreduce.Mapper.Context context)
         throws IOException,
                InterruptedException
Overrides:
map in class org.apache.hadoop.mapreduce.Mapper<List<Map.Entry<Key,Value>>,InputStream,org.apache.hadoop.io.Text,Mutation>
Throws:
IOException
InterruptedException

setup

protected void setup(org.apache.hadoop.mapreduce.Mapper.Context context)
              throws IOException,
                     InterruptedException
Overrides:
setup in class org.apache.hadoop.mapreduce.Mapper<List<Map.Entry<Key,Value>>,InputStream,org.apache.hadoop.io.Text,Mutation>
Throws:
IOException
InterruptedException


Copyright © 2013 Apache Accumulo Project. All Rights Reserved.