Class LinkDumper
java.lang.Object
org.apache.hadoop.conf.Configured
org.apache.nutch.scoring.webgraph.LinkDumper
- All Implemented Interfaces:
Configurable,Tool
The LinkDumper tool creates a database of node to inlink information that can
be read using the nested Reader class. This allows the inlink and scoring
state of a single url to be reviewed quickly to determine why a given url is
ranking a certain way. This tool is to be used with the LinkRank analysis.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classInverts outlinks from the WebGraph to inlinks and attaches node information.static classBean class which holds url to node information.static classWritable class which holds an array of LinkNode objects.static classMerges LinkNode objects into a single array value per url.static classReader class which will print out the url and all of its inlinks to system out. -
Field Summary
Fields -
Constructor Summary
Constructors -
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
-
Field Details
-
DUMP_DIR
- See Also:
-
-
Constructor Details
-
LinkDumper
public LinkDumper()
-
-
Method Details
-
dumpLinks
public void dumpLinks(Path webGraphDb) throws IOException, InterruptedException, ClassNotFoundException Runs the inverter and merger jobs of the LinkDumper tool to create the url to inlink node database.- Parameters:
webGraphDb- thePathto the output ofWebGraph.createWebGraph(Path, Path[], boolean, boolean)- Throws:
IOException- if there is a fatal I/O issue at runtimeInterruptedException- if the Job is interrupted during executionClassNotFoundException- if classes required to run the Job cannot be located
-
main
- Throws:
Exception
-
run
Runs the LinkDumper tool. This simply creates the database, to read the values the nested Reader tool must be used.
-