public class TopGroups<GROUP_VALUE_TYPE> extends Object
Modifier and Type | Field | 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 | Description |
---|---|
TopGroups(TopGroups<GROUP_VALUE_TYPE> oldTopGroups,
Integer totalGroupCount) |
|
TopGroups(SortField[] groupSort,
SortField[] withinGroupSort,
int totalHitCount,
int totalGroupedHitCount,
GroupDocs<GROUP_VALUE_TYPE>[] groups) |
Modifier and Type | Method | Description |
---|---|---|
static <T> TopGroups<T> |
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.
|
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
Copyright © 2000-2018 Apache Software Foundation. All Rights Reserved.