class TermAllGroupHeadsCollector.OrdScoreAllGroupHeadsCollector.GroupHead extends AbstractAllGroupHeadsCollector.GroupHead<BytesRef>
Modifier and Type | Field and Description |
---|---|
(package private) float[] |
scores |
(package private) int[] |
sortOrds |
(package private) BytesRefBuilder[] |
sortValues |
doc, groupValue
Constructor and Description |
---|
GroupHead(int doc,
BytesRef groupValue) |
Modifier and Type | Method and Description |
---|---|
int |
compare(int compIDX,
int doc)
Compares the specified document for a specified comparator against the current most relevant document.
|
void |
updateDocHead(int doc)
Updates the current most relevant document with the specified document.
|
BytesRefBuilder[] sortValues
int[] sortOrds
float[] scores
GroupHead(int doc, BytesRef groupValue) throws java.io.IOException
java.io.IOException
public int compare(int compIDX, int doc) throws java.io.IOException
AbstractAllGroupHeadsCollector.GroupHead
compare
in class AbstractAllGroupHeadsCollector.GroupHead<BytesRef>
compIDX
- The comparator index of the specified comparator.doc
- The specified document.java.io.IOException
- If I/O related errors occurpublic void updateDocHead(int doc) throws java.io.IOException
AbstractAllGroupHeadsCollector.GroupHead
updateDocHead
in class AbstractAllGroupHeadsCollector.GroupHead<BytesRef>
doc
- The specified documentjava.io.IOException
- If I/O related errors occur