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