org.apache.hadoop.examples
Class WordCount.TokenizerMapper

java.lang.Object
  extended by org.apache.hadoop.mapreduce.Mapper<Object,Text,Text,IntWritable>
      extended by org.apache.hadoop.examples.WordCount.TokenizerMapper
Enclosing class:
WordCount

public static class WordCount.TokenizerMapper
extends Mapper<Object,Text,Text,IntWritable>


Nested Class Summary
 
Nested classes/interfaces inherited from class org.apache.hadoop.mapreduce.Mapper
Mapper.Context
 
Constructor Summary
WordCount.TokenizerMapper()
           
 
Method Summary
 void map(Object key, Text value, Mapper.Context context)
          Called once for each key/value pair in the input split.
 
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

WordCount.TokenizerMapper

public WordCount.TokenizerMapper()
Method Detail

map

public void map(Object key,
                Text value,
                Mapper.Context context)
         throws IOException,
                InterruptedException
Description copied from class: Mapper
Called once for each key/value pair in the input split. Most applications should override this, but the default is the identity function.

Overrides:
map in class Mapper<Object,Text,Text,IntWritable>
Throws:
IOException
InterruptedException


Copyright © 2009 The Apache Software Foundation