org.apache.nutch.crawl
Class Injector.InjectMapper
java.lang.Object
org.apache.nutch.crawl.Injector.InjectMapper
- All Implemented Interfaces:
- Closeable, org.apache.hadoop.mapred.JobConfigurable, org.apache.hadoop.mapred.Mapper<org.apache.hadoop.io.WritableComparable,org.apache.hadoop.io.Text,org.apache.hadoop.io.Text,CrawlDatum>
- Enclosing class:
- Injector
public static class Injector.InjectMapper
- extends Object
- implements org.apache.hadoop.mapred.Mapper<org.apache.hadoop.io.WritableComparable,org.apache.hadoop.io.Text,org.apache.hadoop.io.Text,CrawlDatum>
Normalize and filter injected urls.
Method Summary |
void |
close()
|
void |
configure(org.apache.hadoop.mapred.JobConf job)
|
void |
map(org.apache.hadoop.io.WritableComparable key,
org.apache.hadoop.io.Text value,
org.apache.hadoop.mapred.OutputCollector<org.apache.hadoop.io.Text,CrawlDatum> output,
org.apache.hadoop.mapred.Reporter reporter)
|
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(org.apache.hadoop.mapred.JobConf job)
- Specified by:
configure
in interface org.apache.hadoop.mapred.JobConfigurable
close
public void close()
- Specified by:
close
in interface Closeable
map
public void map(org.apache.hadoop.io.WritableComparable key,
org.apache.hadoop.io.Text value,
org.apache.hadoop.mapred.OutputCollector<org.apache.hadoop.io.Text,CrawlDatum> output,
org.apache.hadoop.mapred.Reporter reporter)
throws IOException
- Specified by:
map
in interface org.apache.hadoop.mapred.Mapper<org.apache.hadoop.io.WritableComparable,org.apache.hadoop.io.Text,org.apache.hadoop.io.Text,CrawlDatum>
- Throws:
IOException
Copyright © 2006 The Apache Software Foundation