Package org.apache.nutch.crawl
Class CrawlDbFilter
java.lang.Object
org.apache.hadoop.mapreduce.Mapper<Text,CrawlDatum,Text,CrawlDatum>
org.apache.nutch.crawl.CrawlDbFilter
This class provides a way to separate the URL normalization and filtering
steps from the rest of CrawlDb manipulation code.
- Author:
- Andrzej Bialecki
-
Nested Class Summary
Nested classes/interfaces inherited from class org.apache.hadoop.mapreduce.Mapper
Mapper.Context -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidmap(Text key, CrawlDatum value, Mapper<Text, CrawlDatum, Text, CrawlDatum>.Context context) voidsetup(Mapper<Text, CrawlDatum, Text, CrawlDatum>.Context context)
-
Field Details
-
URL_FILTERING
- See Also:
-
URL_NORMALIZING
- See Also:
-
URL_NORMALIZING_SCOPE
- See Also:
-
-
Constructor Details
-
CrawlDbFilter
public CrawlDbFilter()
-
-
Method Details
-
setup
- Overrides:
setupin classMapper<Text,CrawlDatum, Text, CrawlDatum>
-
map
public void map(Text key, CrawlDatum value, Mapper<Text, CrawlDatum, throws IOException, InterruptedExceptionText, CrawlDatum>.Context context) - Overrides:
mapin classMapper<Text,CrawlDatum, Text, CrawlDatum> - Throws:
IOExceptionInterruptedException
-