private static class AllGroupHeadsCollector.ScoringGroupHead<T> extends AllGroupHeadsCollector.GroupHead<T>
| Modifier and Type | Field and Description |
|---|---|
private Scorable |
scorer |
private float |
topScore |
doc, docBase, groupValue| Modifier | Constructor and Description |
|---|---|
protected |
ScoringGroupHead(Scorable scorer,
T groupValue,
int doc,
int docBase) |
| Modifier and Type | Method and 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 segment
|
protected void |
updateDocHead(int doc)
Updates the current most relevant document with the specified document.
|
setNextReaderprivate Scorable scorer
private float topScore
protected void setScorer(Scorable scorer)
AllGroupHeadsCollector.GroupHeadsetScorer in class AllGroupHeadsCollector.GroupHead<T>protected int compare(int compIDX,
int doc)
throws java.io.IOException
AllGroupHeadsCollector.GroupHeadcompare in class AllGroupHeadsCollector.GroupHead<T>compIDX - The comparator index of the specified comparator.doc - The specified document.java.io.IOException - If I/O related errors occurprotected void updateDocHead(int doc)
throws java.io.IOException
AllGroupHeadsCollector.GroupHeadupdateDocHead in class AllGroupHeadsCollector.GroupHead<T>doc - The specified documentjava.io.IOException - If I/O related errors occur