public class SearchGroup<GROUP_VALUE_TYPE>
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
GROUP_VALUE_TYPE |
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,
org.apache.lucene.search.Sort groupSort)
Merges multiple collections of top groups, for example
obtained from separate index shards.
|
java.lang.String |
toString() |
public GROUP_VALUE_TYPE groupValue
public java.lang.Object[] sortValues
null
if fillFields=false
had
been passed to AbstractFirstPassGroupingCollector.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, org.apache.lucene.search.Sort groupSort) throws java.io.IOException
AbstractFirstPassGroupingCollector.getTopGroups(int, boolean)
.
NOTE: this returns null if the topGroups is empty.
java.io.IOException
Copyright © 2000-2018 Apache Software Foundation. All Rights Reserved.