org.apache.nutch.host

## Class HostInjectorJob.UrlMapper

- java.lang.Object
- - org.apache.hadoop.mapreduce.Mapper<LongWritable,Text,String,Host>
  - - org.apache.nutch.host.HostInjectorJob.UrlMapper

- Enclosing class:
    HostInjectorJob

      public static class HostInjectorJob.UrlMapper
      extends Mapper<LongWritable,Text,String,Host>

- - ### Nested Class Summary

    - ### Nested classes/interfaces inherited from class org.apache.hadoop.mapreduce.Mapper

      `Mapper.Context`

  - ### Constructor Summary

    Constructors
    Constructor and Description
    `HostInjectorJob.UrlMapper()`

  - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `protected void` | `map(LongWritable key, Text value, Mapper.Context context)`
    `protected void` | `setup(Mapper.Context context)`

    - ### Methods inherited from class org.apache.hadoop.mapreduce.Mapper

      `cleanup, run`

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

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

- - ### Constructor Detail

    - #### HostInjectorJob.UrlMapper

          public HostInjectorJob.UrlMapper()

  - ### Method Detail

    - #### setup

          protected void setup(Mapper.Context context)
                        throws IOException,
                               InterruptedException

      Overrides:
        `setup` in class `Mapper<LongWritable,Text,String,Host>`
      Throws:
        `IOException`
        `InterruptedException`

    - #### map

          protected void map(LongWritable key,
                 Text value,
                 Mapper.Context context)
                      throws IOException,
                             InterruptedException

      Overrides:
        `map` in class `Mapper<LongWritable,Text,String,Host>`
      Throws:
        `IOException`
        `InterruptedException`

Copyright © 2015 The Apache Software Foundation