org.apache.nutch.tools
Class LinkAnalysisTool

java.lang.Object
  extended byorg.apache.nutch.tools.LinkAnalysisTool

public class LinkAnalysisTool
extends Object

LinkAnalysisTool performs link-analysis by using the DistributedAnalysisTool. This single-process all-in-one tool is a wrapper around the more complicated distributed one.

Author:
Mike Cafarella

Constructor Summary
LinkAnalysisTool(NutchFileSystem nfs, File dbDir)
          We need a DistributedAnalysisTool in order to get things done!
 
Method Summary
 void iterate(int numIterations, File scoreFile)
          Do a single-process iteration over the database.
static void main(String[] argv)
          Kick off the link analysis.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LinkAnalysisTool

public LinkAnalysisTool(NutchFileSystem nfs,
                        File dbDir)
                 throws IOException
We need a DistributedAnalysisTool in order to get things done!

Method Detail

iterate

public void iterate(int numIterations,
                    File scoreFile)
             throws IOException
Do a single-process iteration over the database. Implemented by calling the distributed tool's functions.

Throws:
IOException

main

public static void main(String[] argv)
                 throws IOException
Kick off the link analysis. Submit the location of the db directory, as well as the cache size.

Throws:
IOException


Copyright © 2006 The Apache Software Foundation