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

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `LinkRank()` Default constructor.
    `LinkRank(Configuration conf)` Configurable constructor.

  - ### Method Summary

    All Methods Static Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `void` | `analyze(Path webGraphDb)` Runs the complete link analysis job.
    `void` | `close()`
    `static void` | `main(java.lang.String[] args)`
    `int` | `run(java.lang.String[] args)` Runs the LinkRank tool.

    - ### Methods inherited from class org.apache.hadoop.conf.Configured

      `getConf, setConf`

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

    - ### Methods inherited from interface org.apache.hadoop.conf.Configurable

      `getConf, setConf`

- - ### Constructor Detail

    - #### LinkRank

          public LinkRank()

      Default constructor.

    - #### LinkRank

          public LinkRank(Configuration conf)

      Configurable constructor.

  - ### Method Detail

    - #### close

          public void close()

    - #### analyze

          public void analyze(Path webGraphDb)
                       throws java.io.IOException,
                              java.lang.ClassNotFoundException,
                              java.lang.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:
        `java.io.IOException` - If an error occurs during link analysis.
        `java.lang.ClassNotFoundException`
        `java.lang.InterruptedException`

    - #### main

          public static void main(java.lang.String[] args)
                           throws java.lang.Exception

      Throws:
        `java.lang.Exception`

    - #### run

          public int run(java.lang.String[] args)
                  throws java.lang.Exception

      Runs the LinkRank tool.
      Specified by:
        `run` in interface `Tool`
      Throws:
        `java.lang.Exception`

Copyright © 2019 The Apache Software Foundation