org.apache.nutch.crawl

## Class UrlWithScore.UrlOnlyPartitioner

- java.lang.Object
- - org.apache.hadoop.mapreduce.Partitioner<UrlWithScore,NutchWritable>
  - - org.apache.nutch.crawl.UrlWithScore.UrlOnlyPartitioner

- Enclosing class:
    UrlWithScore

      public static final class UrlWithScore.UrlOnlyPartitioner
      extends Partitioner<UrlWithScore,NutchWritable>

  A partitioner by {url}.

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `UrlOnlyPartitioner()`

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `int` | `getPartition(UrlWithScore key, NutchWritable val, int reduces)`

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

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

- - ### Constructor Detail

    - #### UrlOnlyPartitioner

          public UrlOnlyPartitioner()

  - ### Method Detail

    - #### getPartition

          public int getPartition(UrlWithScore key,
                                  NutchWritable val,
                                  int reduces)

      Specified by:
        `getPartition` in class `Partitioner<UrlWithScore,NutchWritable>`

Copyright © 2019 The Apache Software Foundation