Class NodeReader
java.lang.Object
org.apache.hadoop.conf.Configured
org.apache.nutch.scoring.webgraph.NodeReader
- All Implemented Interfaces:
Configurable
Reads and prints to system out information for a single node from the NodeDb
in the WebGraph.
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class org.apache.hadoop.conf.Configured
getConf, setConf
-
Constructor Details
-
NodeReader
public NodeReader() -
NodeReader
-
-
Method Details
-
dumpUrl
Prints the content of the Node represented by the url to system out.- Parameters:
webGraphDb- The webgraph from which to get the node.url- The url of the node.- Throws:
IOException- If an error occurs while getting the node.
-
main
Runs the NodeReader tool. The command line arguments must contain a webgraphdb path and a url. The url must match the normalized url that is contained in the NodeDb of the WebGraph.- Parameters:
args- input parameters for running this tool, run with "help" for information- Throws:
Exception- if there is a fatal error running this tool
-