org.apache.nutch.crawl

## Class UrlWithScore.UrlScoreComparator.UrlOnlyComparator

- java.lang.Object
- - org.apache.nutch.crawl.UrlWithScore.UrlScoreComparator.UrlOnlyComparator

- All Implemented Interfaces:
    java.util.Comparator<UrlWithScore>, RawComparator<UrlWithScore>
  Enclosing class:
    UrlWithScore.UrlScoreComparator

      public static final class UrlWithScore.UrlScoreComparator.UrlOnlyComparator
      extends java.lang.Object
      implements RawComparator<UrlWithScore>

  Compares by {url}.

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `UrlOnlyComparator()`

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `int` | `compare(byte[] b1, int s1, int l1, byte[] b2, int s2, int l2)`
    `int` | `compare(UrlWithScore o1, UrlWithScore o2)`

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

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

    - ### Methods inherited from interface java.util.Comparator

      `comparing, comparing, comparingDouble, comparingInt, comparingLong, equals, naturalOrder, nullsFirst, nullsLast, reversed, reverseOrder, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLong`

- - ### Constructor Detail

    - #### UrlOnlyComparator

          public UrlOnlyComparator()

  - ### Method Detail

    - #### compare

          public int compare(UrlWithScore o1,
                             UrlWithScore o2)

      Specified by:
        `compare` in interface `java.util.Comparator<UrlWithScore>`

    - #### compare

          public int compare(byte[] b1,
                             int s1,
                             int l1,
                             byte[] b2,
                             int s2,
                             int l2)

      Specified by:
        `compare` in interface `RawComparator<UrlWithScore>`

Copyright © 2019 The Apache Software Foundation