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
Fields Modifier and Type Field Description private Scorable
scorer
private float
topScore
-
Fields inherited from class org.apache.lucene.search.grouping.AllGroupHeadsCollector.GroupHead
doc, docBase, groupValue
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
ScoringGroupHead(Scorable scorer, T groupValue, int doc, int docBase)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected int
compare(int compIDX, int doc)
Compares the specified document for a specified comparator against the current most relevant document.protected void
setScorer(Scorable scorer)
Called for each segmentprotected void
updateDocHead(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 Detail
-
scorer
private Scorable scorer
-
topScore
private float topScore
-
-
Method Detail
-
setScorer
protected void setScorer(Scorable scorer)
Description copied from class:AllGroupHeadsCollector.GroupHead
Called for each segment- Specified by:
setScorer
in classAllGroupHeadsCollector.GroupHead<T>
-
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 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:
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 classAllGroupHeadsCollector.GroupHead<T>
- Parameters:
doc
- The specified document- Throws:
java.io.IOException
- If I/O related errors occur
-
-