org.apache.nutch.scoring.webgraph
Class LinkRank
java.lang.Object
org.apache.hadoop.conf.Configured
org.apache.nutch.scoring.webgraph.LinkRank
- All Implemented Interfaces:
- Configurable, Tool
public class LinkRank
- extends Configured
- implements Tool
Field Summary |
static org.slf4j.Logger |
LOG
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
LOG
public static final org.slf4j.Logger LOG
LinkRank
public LinkRank()
- Default constructor.
LinkRank
public LinkRank(Configuration conf)
- Configurable constructor.
close
public void close()
analyze
public void analyze(Path webGraphDb)
throws IOException
- 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 an error occurs during link analysis.
main
public static void main(String[] args)
throws Exception
- Throws:
Exception
run
public int run(String[] args)
throws Exception
- Runs the LinkRank tool.
- Specified by:
run
in interface Tool
- Throws:
Exception
Copyright © 2011 The Apache Software Foundation