public class SearchGroup<GROUP_VALUE_TYPE> extends Object
Modifier and Type | Field | Description |
---|---|---|
GROUP_VALUE_TYPE |
groupValue |
The value that defines this group
|
Object[] |
sortValues |
The sort values used during sorting.
|
Constructor | Description |
---|---|
SearchGroup() |
Modifier and Type | Method | Description |
---|---|---|
boolean |
equals(Object o) |
|
int |
hashCode() |
|
static <T> Collection<SearchGroup<T>> |
merge(List<Collection<SearchGroup<T>>> topGroups,
int offset,
int topN,
org.apache.lucene.search.Sort groupSort) |
Merges multiple collections of top groups, for example
obtained from separate index shards.
|
String |
toString() |
public GROUP_VALUE_TYPE groupValue
public Object[] sortValues
null
if fillFields=false
had
been passed to AbstractFirstPassGroupingCollector.getTopGroups(int, boolean)
public static <T> Collection<SearchGroup<T>> merge(List<Collection<SearchGroup<T>>> topGroups, int offset, int topN, org.apache.lucene.search.Sort groupSort) throws IOException
AbstractFirstPassGroupingCollector.getTopGroups(int, boolean)
.
NOTE: this returns null if the topGroups is empty.
IOException
Copyright © 2000-2018 Apache Software Foundation. All Rights Reserved.