public class FunctionAllGroupHeadsCollector.GroupHead extends AbstractAllGroupHeadsCollector.GroupHead<MutableValue>
| Modifier and Type | Field and Description |
|---|---|
(package private) FieldComparator<?>[] |
comparators |
(package private) LeafFieldComparator[] |
leafComparators |
doc, groupValue| Modifier | Constructor and Description |
|---|---|
private |
GroupHead(MutableValue groupValue,
Sort sort,
int doc) |
| 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.
|
final FieldComparator<?>[] comparators
final LeafFieldComparator[] leafComparators
private GroupHead(MutableValue groupValue, Sort sort, int doc) throws java.io.IOException
java.io.IOExceptionpublic int compare(int compIDX,
int doc)
throws java.io.IOException
AbstractAllGroupHeadsCollector.GroupHeadcompare in class AbstractAllGroupHeadsCollector.GroupHead<MutableValue>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.GroupHeadupdateDocHead in class AbstractAllGroupHeadsCollector.GroupHead<MutableValue>doc - The specified documentjava.io.IOException - If I/O related errors occur