Class Node

  • All Implemented Interfaces:
    Writable

    public class Node
    extends 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 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)