public class TopGroups<GROUP_VALUE_TYPE> extends Object
Modifier and Type | Field and Description |
---|---|
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 and Description |
---|
TopGroups(SortField[] groupSort,
SortField[] withinGroupSort,
int totalHitCount,
int totalGroupedHitCount,
GroupDocs<GROUP_VALUE_TYPE>[] groups) |
TopGroups(TopGroups<GROUP_VALUE_TYPE> oldTopGroups,
Integer totalGroupCount) |
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
public TopGroups(SortField[] groupSort, SortField[] withinGroupSort, int totalHitCount, int totalGroupedHitCount, GroupDocs<GROUP_VALUE_TYPE>[] groups)
public TopGroups(TopGroups<GROUP_VALUE_TYPE> oldTopGroups, Integer totalGroupCount)
public static <T> TopGroups<T> merge(TopGroups<T>[] shardGroups, Sort groupSort, Sort docSort, int docOffset, int docTopN) throws IOException
IOException