org.apache.nutch.crawl
Class Injector.InjectMapper

java.lang.Object
  extended by org.apache.nutch.crawl.Injector.InjectMapper
All Implemented Interfaces:
Closeable, JobConfigurable, Mapper<WritableComparable,Text,Text,CrawlDatum>
Enclosing class:
Injector

public static class Injector.InjectMapper
extends Object
implements Mapper<WritableComparable,Text,Text,CrawlDatum>

Normalize and filter injected urls.


Constructor Summary
Injector.InjectMapper()
           
 
Method Summary
 void close()
           
 void configure(JobConf job)
           
 void map(WritableComparable key, Text value, OutputCollector<Text,CrawlDatum> output, Reporter reporter)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Injector.InjectMapper

public Injector.InjectMapper()
Method Detail

configure

public void configure(JobConf job)
Specified by:
configure in interface JobConfigurable

close

public void close()
Specified by:
close in interface Closeable

map

public void map(WritableComparable key,
                Text value,
                OutputCollector<Text,CrawlDatum> output,
                Reporter reporter)
         throws IOException
Specified by:
map in interface Mapper<WritableComparable,Text,Text,CrawlDatum>
Throws:
IOException


Copyright © 2011 The Apache Software Foundation