Package org.apache.nutch.fetcher
Class FetchItem
java.lang.Object
org.apache.nutch.fetcher.FetchItem
This class describes the item to be fetched.
-
Constructor Summary
ConstructorsConstructorDescriptionFetchItem(Text url, URL u, CrawlDatum datum, String queueID) FetchItem(Text url, URL u, CrawlDatum datum, String queueID, int outlinkDepth) -
Method Summary
-
Constructor Details
-
FetchItem
-
FetchItem
-
-
Method Details
-
create
Create an item. Queue id will be created based onqueueModeargument, either as a protocol + hostname pair, protocol + IP address pair or protocol+domain pair. Sets outlink depth to 0.- Parameters:
url- URL of fetch itemdatum- webpage information associated with the URLqueueMode- either byHost, byDomain or byIP.- Returns:
- a
FetchItemwith outlinks depth of 0 - See Also:
-
create
Create an item. Queue id will be created based onqueueModeargument, either as a protocol + hostname pair, protocol + IP address pair or protocol+domain pair. Configurable outlink depth.- Parameters:
url- URL of fetch itemdatum- webpage information associated with the URLqueueMode- either byHost, byDomain or byIPoutlinkDepth- the desired depth of outlink for this given FetchItem- Returns:
- a
FetchItem - See Also:
-
getDatum
-
getQueueID
-
getUrl
-
getURL2
-