Package org.apache.nutch.crawl
Class Injector.InjectMapper
java.lang.Object
org.apache.hadoop.mapreduce.Mapper<Text,Writable,Text,CrawlDatum>
org.apache.nutch.crawl.Injector.InjectMapper
- Enclosing class:
- Injector
InjectMapper reads
- the CrawlDb seeds are injected into
- the plain-text seed files and parses each line into the URL and metadata. Seed URLs are passed to the reducer with STATUS_INJECTED.
-
Nested Class Summary
Nested classes/interfaces inherited from class org.apache.hadoop.mapreduce.Mapper
Mapper.Context -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
URL_NORMALIZING_SCOPE
- See Also:
-
TAB_CHARACTER
- See Also:
-
EQUAL_CHARACTER
- See Also:
-
-
Constructor Details
-
InjectMapper
public InjectMapper()
-
-
Method Details
-
setup
-
map
public void map(Text key, Writable value, Mapper<Text, Writable, throws IOException, InterruptedExceptionText, CrawlDatum>.Context context) - Overrides:
mapin classMapper<Text,Writable, Text, CrawlDatum> - Throws:
IOExceptionInterruptedException
-