Class DocComparator


  • public class DocComparator
    extends FieldComparator<java.lang.Integer>
    Comparator that sorts by asc _doc
    • Field Detail

      • docIDs

        private final int[] docIDs
      • enableSkipping

        private final boolean enableSkipping
      • bottom

        private int bottom
      • topValue

        private int topValue
      • topValueSet

        private boolean topValueSet
      • bottomValueSet

        private boolean bottomValueSet
      • hitsThresholdReached

        private boolean hitsThresholdReached
    • Constructor Detail

      • DocComparator

        public DocComparator​(int numHits,
                             boolean reverse,
                             Pruning pruning)
        Creates a new comparator based on document ids for numHits