Package org.apache.nutch.crawl
Class LinkDb
java.lang.Object
org.apache.hadoop.conf.Configured
org.apache.nutch.util.NutchTool
org.apache.nutch.crawl.LinkDb
- All Implemented Interfaces:
Configurable,Tool
Maintains an inverted link map, listing incoming links for each url.
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringstatic final Stringstatic final Stringstatic final StringFields inherited from class org.apache.nutch.util.NutchTool
currentJob, currentJobNum, numJobs, results, status -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidvoidvoidstatic voidintProgrammatic entry point forNutchToolcallers.Methods inherited from class org.apache.nutch.util.NutchTool
getProgress, getStatus, killJob, setConf, stopJobMethods inherited from class org.apache.hadoop.conf.Configured
getConfMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.hadoop.conf.Configurable
getConf, setConf
-
Field Details
-
IGNORE_INTERNAL_LINKS
- See Also:
-
IGNORE_EXTERNAL_LINKS
- See Also:
-
CURRENT_NAME
- See Also:
-
LOCK_NAME
- See Also:
-
-
Constructor Details
-
LinkDb
public LinkDb() -
LinkDb
-
-
Method Details
-
invert
public void invert(Path linkDb, Path segmentsDir, boolean normalize, boolean filter, boolean force) throws IOException, InterruptedException, ClassNotFoundException -
invert
public void invert(Path linkDb, Path[] segments, boolean normalize, boolean filter, boolean force) throws IOException, InterruptedException, ClassNotFoundException -
install
- Throws:
IOException
-
main
- Throws:
Exception
-
run
-
run
Programmatic entry point forNutchToolcallers.- Specified by:
runin classNutchTool- Parameters:
args- aMapof arguments to be run with the toolcrawlId- a crawl identifier to associate with the tool invocation- Returns:
- Map results object if tool executes successfully otherwise null
- Throws:
Exception- if there is an error during the tool execution
-