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 returnIOException
public abstract AllGroupsCollector<T> getAllGroupsCollector()
AllGroupsCollector
public abstract AllGroupHeadsCollector<T> getGroupHeadsCollector(Sort sort)
AllGroupHeadsCollector
sort
- 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
IOException
Copyright © 2000-2017 Apache Software Foundation. All Rights Reserved.