org.apache.nutch.crawl

## Class TextMD5Signature

- java.lang.Object
- - org.apache.hadoop.conf.Configured
  - - org.apache.nutch.crawl.Signature
    - - org.apache.nutch.crawl.TextMD5Signature

- All Implemented Interfaces:
    Configurable

      public class TextMD5Signature
      extends Signature

  Default implementation of a page signature. It calculates an MD5 hash of the textual content of a page. In case there is no text, it calculates a hash from the page's fetched content.

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `TextMD5Signature()`

  - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `byte[]` | `calculate(WebPage page)`
    `Collection<WebPage.Field>` | `getFields()`

    - ### 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`

- - ### Constructor Detail

    - #### TextMD5Signature

          public TextMD5Signature()

  - ### Method Detail

    - #### calculate

          public byte[] calculate(WebPage page)

      Specified by:
        `calculate` in class `Signature`

    - #### getFields

          public Collection<WebPage.Field> getFields()

      Specified by:
        `getFields` in class `Signature`

Copyright © 2015 The Apache Software Foundation