Module org.apache.lucene.grouping
Class AllGroupHeadsCollector.ScoringGroupHead<T>
java.lang.Object
org.apache.lucene.search.grouping.AllGroupHeadsCollector.GroupHead<T>
org.apache.lucene.search.grouping.AllGroupHeadsCollector.ScoringGroupHead<T>
- Enclosing class:
AllGroupHeadsCollector<T>
private static class AllGroupHeadsCollector.ScoringGroupHead<T>
extends AllGroupHeadsCollector.GroupHead<T>
-
Field Summary
FieldsFields inherited from class org.apache.lucene.search.grouping.AllGroupHeadsCollector.GroupHead
doc, docBase, groupValue -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedScoringGroupHead(Scorable scorer, T groupValue, int doc, int docBase) -
Method Summary
Modifier and TypeMethodDescriptionprotected intcompare(int compIDX, int doc) Compares the specified document for a specified comparator against the current most relevant document.protected voidCalled for each segmentprotected voidupdateDocHead(int doc) Updates the current most relevant document with the specified document.Methods inherited from class org.apache.lucene.search.grouping.AllGroupHeadsCollector.GroupHead
setNextReader
-
Field Details
-
scorer
-
topScore
private float topScore
-
-
Constructor Details
-
ScoringGroupHead
- Throws:
IOException
-
-
Method Details
-
setScorer
Description copied from class:AllGroupHeadsCollector.GroupHeadCalled for each segment- Specified by:
setScorerin classAllGroupHeadsCollector.GroupHead<T>
-
compare
Description copied from class:AllGroupHeadsCollector.GroupHeadCompares the specified document for a specified comparator against the current most relevant document.- Specified by:
comparein classAllGroupHeadsCollector.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:
IOException- If I/O related errors occur
-
updateDocHead
Description copied from class:AllGroupHeadsCollector.GroupHeadUpdates the current most relevant document with the specified document.- Specified by:
updateDocHeadin classAllGroupHeadsCollector.GroupHead<T>- Parameters:
doc- The specified document- Throws:
IOException- If I/O related errors occur
-