org.apache.nutch.host
Class HostInjectorJob.UrlMapper

java.lang.Object
  extended by org.apache.hadoop.mapreduce.Mapper<LongWritable,Text,String,Host>
      extended by org.apache.nutch.host.HostInjectorJob.UrlMapper
Enclosing class:
HostInjectorJob

public static class HostInjectorJob.UrlMapper
extends Mapper<LongWritable,Text,String,Host>


Nested Class Summary
 
Nested classes/interfaces inherited from class org.apache.hadoop.mapreduce.Mapper
Mapper.Context
 
Constructor Summary
HostInjectorJob.UrlMapper()
           
 
Method Summary
protected  void map(LongWritable key, Text value, Mapper.Context context)
           
protected  void setup(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

HostInjectorJob.UrlMapper

public HostInjectorJob.UrlMapper()
Method Detail

setup

protected void setup(Mapper.Context context)
              throws IOException,
                     InterruptedException
Overrides:
setup in class Mapper<LongWritable,Text,String,Host>
Throws:
IOException
InterruptedException

map

protected void map(LongWritable key,
                   Text value,
                   Mapper.Context context)
            throws IOException,
                   InterruptedException
Overrides:
map in class Mapper<LongWritable,Text,String,Host>
Throws:
IOException
InterruptedException


Copyright © 2012 The Apache Software Foundation