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