org.apache.nutch.host

## Class HostDbUpdateJob

- java.lang.Object
- - org.apache.nutch.host.HostDbUpdateJob

- All Implemented Interfaces:
    Configurable, Tool

      public class HostDbUpdateJob
      extends java.lang.Object
      implements Tool

  Scans the web table and create host entries for each unique host.

- - ### Nested Class Summary

    Nested Classes
    Modifier and Type | Class and Description
    --- | ---
    `static class` | `HostDbUpdateJob.Mapper` Maps each WebPage to a host key.

  - ### Constructor Summary

    Constructors
    Constructor and Description
    `HostDbUpdateJob()`
    `HostDbUpdateJob(Configuration conf)`

  - ### Method Summary

    All Methods Static Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `Configuration` | `getConf()`
    `static void` | `main(java.lang.String[] args)`
    `int` | `run(java.lang.String[] args)`
    `void` | `setConf(Configuration conf)`
    `void` | `updateHosts(boolean buildLinkDb)`

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

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

- - ### Constructor Detail

    - #### HostDbUpdateJob

          public HostDbUpdateJob()

    - #### HostDbUpdateJob

          public HostDbUpdateJob(Configuration conf)

  - ### Method Detail

    - #### getConf

          public Configuration getConf()

      Specified by:
        `getConf` in interface `Configurable`

    - #### setConf

          public void setConf(Configuration conf)

      Specified by:
        `setConf` in interface `Configurable`

    - #### updateHosts

          public void updateHosts(boolean buildLinkDb)
                           throws java.lang.Exception

      Throws:
        `java.lang.Exception`

    - #### run

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

      Specified by:
        `run` in interface `Tool`
      Throws:
        `java.lang.Exception`

    - #### main

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

      Throws:
        `java.lang.Exception`

Copyright © 2019 The Apache Software Foundation