Class LinkRank
java.lang.Object
org.apache.hadoop.conf.Configured
org.apache.nutch.scoring.webgraph.LinkRank
- All Implemented Interfaces:
Configurable,Tool
-
Constructor Summary
ConstructorsConstructorDescriptionLinkRank()Default constructor.LinkRank(Configuration conf) Configurable constructor. -
Method Summary
Methods inherited from class org.apache.hadoop.conf.Configured
getConf, setConfMethods 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
-
Constructor Details
-
LinkRank
public LinkRank()Default constructor. -
LinkRank
Configurable constructor.- Parameters:
conf- a populatedConfiguration
-
-
Method Details
-
analyze
public void analyze(Path webGraphDb) throws IOException, ClassNotFoundException, InterruptedException Runs the complete link analysis job. The complete job determins rank one score. Then runs through a given number of invert and analyze iterations, by default 10. And finally replaces the NodeDb in the WebGraph with the link rank output.- Parameters:
webGraphDb- The WebGraph to run link analysis on.- Throws:
IOException- If a fatal I/O runtime error occurs during link analysis.InterruptedException- if the Job is interrupted during executionClassNotFoundException- if classes required to run the Job cannot be located
-
main
- Throws:
Exception
-
run
Runs the LinkRank tool.
-