Class TopFieldCollector.TopFieldLeafCollector

    • Field Detail

      • reverseMul

        final int reverseMul
      • collectedAllCompetitiveHits

        boolean collectedAllCompetitiveHits
    • Method Detail

      • countHit

        void countHit​(int doc)
               throws java.io.IOException
        Throws:
        java.io.IOException
      • thresholdCheck

        boolean thresholdCheck​(int doc)
                        throws java.io.IOException
        Throws:
        java.io.IOException
      • collectCompetitiveHit

        void collectCompetitiveHit​(int doc)
                            throws java.io.IOException
        Throws:
        java.io.IOException
      • collectAnyHit

        void collectAnyHit​(int doc,
                           int hitsCollected)
                    throws java.io.IOException
        Throws:
        java.io.IOException
      • competitiveIterator

        public DocIdSetIterator competitiveIterator()
                                             throws java.io.IOException
        Description copied from interface: LeafCollector
        Optionally returns an iterator over competitive documents.

        Collectors should delegate this method to their comparators if their comparators provide the skipping functionality over non-competitive docs.

        The default is to return null which is interpreted as the collector provide any competitive iterator.

        Specified by:
        competitiveIterator in interface LeafCollector
        Throws:
        java.io.IOException