org.apache.nutch.crawl
Class Injector.InjectMapper
java.lang.Object
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.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Injector.InjectMapper
public Injector.InjectMapper()
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