org.apache.nutch.scoring

## Class ScoreDatum

- java.lang.Object
- - org.apache.nutch.scoring.ScoreDatum

- All Implemented Interfaces:
    Writable

      public class ScoreDatum
      extends Object
      implements Writable

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `ScoreDatum()`
    `ScoreDatum(float score, String url, String anchor, int depth)`

  - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `byte[]` | `deleteMeta(String key)`
    `String` | `getAnchor()`
    `int` | `getDistance()`
    `byte[]` | `getMeta(String key)`
    `float` | `getScore()`
    `String` | `getUrl()`
    `void` | `readFields(DataInput in)`
    `void` | `setMeta(String key, byte[] value)`
    `void` | `setScore(float score)`
    `void` | `setUrl(String url)`
    `String` | `toString()`
    `void` | `write(DataOutput out)`

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

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

- - ### Constructor Detail

    - #### ScoreDatum

          public ScoreDatum()

    - #### ScoreDatum

          public ScoreDatum(float score,
                    String url,
                    String anchor,
                    int depth)

  - ### Method Detail

    - #### readFields

          public void readFields(DataInput in)
                          throws IOException

      Specified by:
        `readFields` in interface `Writable`
      Throws:
        `IOException`

    - #### write

          public void write(DataOutput out)
                     throws IOException

      Specified by:
        `write` in interface `Writable`
      Throws:
        `IOException`

    - #### getMeta

          public byte[] getMeta(String key)

    - #### setMeta

          public void setMeta(String key,
                     byte[] value)

    - #### deleteMeta

          public byte[] deleteMeta(String key)

    - #### getScore

          public float getScore()

    - #### setScore

          public void setScore(float score)

    - #### getUrl

          public String getUrl()

    - #### setUrl

          public void setUrl(String url)

    - #### getAnchor

          public String getAnchor()

    - #### getDistance

          public int getDistance()

    - #### toString

          public String toString()

      Overrides:
        `toString` in class `Object`

Copyright © 2015 The Apache Software Foundation