org.apache.lucene.misc

## Class HighFreqTerms.DocFreqComparator

- java.lang.Object
- - org.apache.lucene.misc.HighFreqTerms.DocFreqComparator

- All Implemented Interfaces:
    Comparator<TermStats>
  Enclosing class:
    HighFreqTerms

      public static final class HighFreqTerms.DocFreqComparator
      extends Object
      implements Comparator<TermStats>

  Compares terms by docTermFreq

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `DocFreqComparator()`

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `int` | `compare(TermStats a, TermStats b)`

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

    - #### DocFreqComparator

          public DocFreqComparator()

  - ### Method Detail

    - #### compare

          public int compare(TermStats a,
                             TermStats b)

      Specified by:
        `compare` in interface `Comparator<TermStats>`

Copyright © 2000-2018 Apache Software Foundation. All Rights Reserved.