public class UpdateHostDbMapper extends java.lang.Object implements Mapper<Text,Writable,Text,NutchWritable>
| Modifier and Type | Field and Description |
|---|---|
protected java.lang.String[] |
args |
protected java.lang.String |
buffer |
protected CrawlDatum |
crawlDatum |
protected boolean |
filter |
protected URLFilters |
filters |
protected Text |
host |
protected HostDatum |
hostDatum |
protected boolean |
normalize |
protected URLNormalizers |
normalizers |
protected boolean |
readingCrawlDb |
protected java.lang.String |
reprUrl |
| Constructor and Description |
|---|
UpdateHostDbMapper() |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
void |
configure(JobConf job) |
protected java.lang.String |
filterNormalize(java.lang.String url)
Filters and or normalizes the input URL
|
void |
map(Text key,
Writable value,
OutputCollector<Text,NutchWritable> output,
Reporter reporter)
Mapper ingesting records from the HostDB, CrawlDB and plaintext host
scores file.
|
protected Text host
protected HostDatum hostDatum
protected CrawlDatum crawlDatum
protected java.lang.String reprUrl
protected java.lang.String buffer
protected java.lang.String[] args
protected boolean filter
protected boolean normalize
protected boolean readingCrawlDb
protected URLFilters filters
protected URLNormalizers normalizers
public void close()
close in interface java.io.Closeableclose in interface java.lang.AutoCloseablepublic void configure(JobConf job)
configure in interface JobConfigurablejob - protected java.lang.String filterNormalize(java.lang.String url)
url - public void map(Text key, Writable value, OutputCollector<Text,NutchWritable> output, Reporter reporter) throws java.io.IOException
Copyright © 2017 The Apache Software Foundation