T - the type the group valuepublic abstract class Grouper<T> extends Object
GroupingSearch| Constructor and Description |
|---|
Grouper() |
| Modifier and Type | Method and Description |
|---|---|
abstract AllGroupsCollector<T> |
getAllGroupsCollector()
Create an
AllGroupsCollector |
abstract FirstPassGroupingCollector<T> |
getFirstPassCollector(Sort sort,
int count)
Create a first-pass collector
|
abstract AllGroupHeadsCollector<T> |
getGroupHeadsCollector(Sort sort)
Create an
AllGroupHeadsCollector |
abstract SecondPassGroupingCollector<T> |
getSecondPassCollector(Collection<SearchGroup<T>> groups,
Sort groupSort,
Sort withinGroupSort,
int maxDocsPerGroup,
boolean getScores,
boolean getMaxScores,
boolean fillSortFields)
Create a second-pass collector
|
public abstract FirstPassGroupingCollector<T> getFirstPassCollector(Sort sort, int count) throws IOException
sort - the order in which groups should be returnedcount - how many groups to returnIOExceptionpublic abstract AllGroupsCollector<T> getAllGroupsCollector()
AllGroupsCollectorpublic abstract AllGroupHeadsCollector<T> getGroupHeadsCollector(Sort sort)
AllGroupHeadsCollectorsort - a within-group sort order to determine which doc is the group headpublic abstract SecondPassGroupingCollector<T> getSecondPassCollector(Collection<SearchGroup<T>> groups, Sort groupSort, Sort withinGroupSort, int maxDocsPerGroup, boolean getScores, boolean getMaxScores, boolean fillSortFields) throws IOException
IOExceptionCopyright © 2000-2019 Apache Software Foundation. All Rights Reserved.