public class SearchGroup<T>
extends java.lang.Object
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, boolean)
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, boolean)
.
NOTE: this returns null if the topGroups is empty.
Copyright © 2000–2019 The Apache Software Foundation. All rights reserved.