Class Sorter.DocComparator

  • Enclosing class:
    Sorter

    public abstract static class Sorter.DocComparator
    extends java.lang.Object
    A comparator of doc IDs.
    • Constructor Summary

      Constructors 
      Constructor Description
      DocComparator()  
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      abstract int compare​(int docID1, int docID2)
      Compare docID1 against docID2.
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • DocComparator

        public DocComparator()
    • Method Detail

      • compare

        public abstract int compare​(int docID1,
                                    int docID2)
        Compare docID1 against docID2. The contract for the return value is the same as Comparator.compare(Object, Object).