org.apache.nutch.scoring.webgraph

## Class Node

- java.lang.Object
- - org.apache.nutch.scoring.webgraph.Node

- All Implemented Interfaces:
    Writable

      public class Node
      extends java.lang.Object
      implements Writable

  A class which holds the number of inlinks and outlinks for a given url along with an inlink score from a link analysis program and any metadata. The Node is the core unit of the NodeDb in the WebGraph.

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `Node()`

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `float` | `getInlinkScore()`
    `Metadata` | `getMetadata()`
    `int` | `getNumInlinks()`
    `int` | `getNumOutlinks()`
    `float` | `getOutlinkScore()`
    `void` | `readFields(java.io.DataInput in)`
    `void` | `setInlinkScore(float inlinkScore)`
    `void` | `setMetadata(Metadata metadata)`
    `void` | `setNumInlinks(int numInlinks)`
    `void` | `setNumOutlinks(int numOutlinks)`
    `java.lang.String` | `toString()`
    `void` | `write(java.io.DataOutput out)`

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

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

- - ### Constructor Detail

    - #### Node

          public Node()

  - ### Method Detail

    - #### getNumInlinks

          public int getNumInlinks()

    - #### setNumInlinks

          public void setNumInlinks(int numInlinks)

    - #### getNumOutlinks

          public int getNumOutlinks()

    - #### setNumOutlinks

          public void setNumOutlinks(int numOutlinks)

    - #### getInlinkScore

          public float getInlinkScore()

    - #### setInlinkScore

          public void setInlinkScore(float inlinkScore)

    - #### getOutlinkScore

          public float getOutlinkScore()

    - #### getMetadata

          public Metadata getMetadata()

    - #### setMetadata

          public void setMetadata(Metadata metadata)

    - #### readFields

          public void readFields(java.io.DataInput in)
                          throws java.io.IOException

      Specified by:
        `readFields` in interface `Writable`
      Throws:
        `java.io.IOException`

    - #### write

          public void write(java.io.DataOutput out)
                     throws java.io.IOException

      Specified by:
        `write` in interface `Writable`
      Throws:
        `java.io.IOException`

    - #### toString

          public java.lang.String toString()

      Overrides:
        `toString` in class `java.lang.Object`

Copyright © 2019 The Apache Software Foundation