Class AllGroupHeadsCollector.ScoringGroupHead<T>

    • Field Detail

      • topScore

        private float topScore
    • Constructor Detail

      • ScoringGroupHead

        protected ScoringGroupHead​(Scorable scorer,
                                   T groupValue,
                                   int doc,
                                   int docBase)
                            throws java.io.IOException
        Throws:
        java.io.IOException
    • Method Detail

      • compare

        protected int compare​(int compIDX,
                              int doc)
                       throws java.io.IOException
        Description copied from class: AllGroupHeadsCollector.GroupHead
        Compares the specified document for a specified comparator against the current most relevant document.
        Specified by:
        compare in class AllGroupHeadsCollector.GroupHead<T>
        Parameters:
        compIDX - The comparator index of the specified comparator.
        doc - The specified document.
        Returns:
        -1 if the specified document wasn't competitive against the current most relevant document, 1 if the specified document was competitive against the current most relevant document. Otherwise 0.
        Throws:
        java.io.IOException - If I/O related errors occur
      • updateDocHead

        protected void updateDocHead​(int doc)
                              throws java.io.IOException
        Description copied from class: AllGroupHeadsCollector.GroupHead
        Updates the current most relevant document with the specified document.
        Specified by:
        updateDocHead in class AllGroupHeadsCollector.GroupHead<T>
        Parameters:
        doc - The specified document
        Throws:
        java.io.IOException - If I/O related errors occur