|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.lucene.search.grouping.TopGroups<GROUP_VALUE_TYPE>
public class TopGroups<GROUP_VALUE_TYPE>
Represents result returned by a grouping search.
Field Summary | |
---|---|
GroupDocs<GROUP_VALUE_TYPE>[] |
groups
Group results in groupSort order |
SortField[] |
groupSort
How groups are sorted against each other |
Integer |
totalGroupCount
The total number of unique groups. |
int |
totalGroupedHitCount
Number of documents grouped into the topN groups |
int |
totalHitCount
Number of documents matching the search |
SortField[] |
withinGroupSort
How docs are sorted within each group |
Constructor Summary | |
---|---|
TopGroups(SortField[] groupSort,
SortField[] withinGroupSort,
int totalHitCount,
int totalGroupedHitCount,
GroupDocs<GROUP_VALUE_TYPE>[] groups)
|
|
TopGroups(TopGroups<GROUP_VALUE_TYPE> oldTopGroups,
Integer totalGroupCount)
|
Method Summary | ||
---|---|---|
static
|
merge(TopGroups<T>[] shardGroups,
Sort groupSort,
Sort docSort,
int docOffset,
int docTopN)
Merges an array of TopGroups, for example obtained from the second-pass collector across multiple shards. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public final int totalHitCount
public final int totalGroupedHitCount
public final Integer totalGroupCount
null
this value is not computed.
public final GroupDocs<GROUP_VALUE_TYPE>[] groups
public final SortField[] groupSort
public final SortField[] withinGroupSort
Constructor Detail |
---|
public TopGroups(SortField[] groupSort, SortField[] withinGroupSort, int totalHitCount, int totalGroupedHitCount, GroupDocs<GROUP_VALUE_TYPE>[] groups)
public TopGroups(TopGroups<GROUP_VALUE_TYPE> oldTopGroups, Integer totalGroupCount)
Method Detail |
---|
public static <T> TopGroups<T> merge(TopGroups<T>[] shardGroups, Sort groupSort, Sort docSort, int docOffset, int docTopN) throws IOException
IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |