public class FunctionGrouper extends Grouper<MutableValue>
Constructor and Description |
---|
FunctionGrouper(ValueSource valueSource,
Map<?,?> context)
Create a Grouper for the provided ValueSource and context
|
Modifier and Type | Method and Description |
---|---|
AllGroupsCollector<MutableValue> |
getAllGroupsCollector()
Create an
AllGroupsCollector |
FirstPassGroupingCollector<MutableValue> |
getFirstPassCollector(Sort sort,
int count)
Create a first-pass collector
|
AllGroupHeadsCollector<MutableValue> |
getGroupHeadsCollector(Sort sort)
Create an
AllGroupHeadsCollector |
SecondPassGroupingCollector<MutableValue> |
getSecondPassCollector(Collection<SearchGroup<MutableValue>> searchGroups,
Sort groupSort,
Sort withinGroupSort,
int maxDocsPerGroup,
boolean getScores,
boolean getMaxScores,
boolean fillSortFields)
Create a second-pass collector
|
public FunctionGrouper(ValueSource valueSource, Map<?,?> context)
public FirstPassGroupingCollector<MutableValue> getFirstPassCollector(Sort sort, int count) throws IOException
Grouper
getFirstPassCollector
in class Grouper<MutableValue>
sort
- the order in which groups should be returnedcount
- how many groups to returnIOException
public AllGroupHeadsCollector<MutableValue> getGroupHeadsCollector(Sort sort)
Grouper
AllGroupHeadsCollector
getGroupHeadsCollector
in class Grouper<MutableValue>
sort
- a within-group sort order to determine which doc is the group headpublic AllGroupsCollector<MutableValue> getAllGroupsCollector()
Grouper
AllGroupsCollector
getAllGroupsCollector
in class Grouper<MutableValue>
public SecondPassGroupingCollector<MutableValue> getSecondPassCollector(Collection<SearchGroup<MutableValue>> searchGroups, Sort groupSort, Sort withinGroupSort, int maxDocsPerGroup, boolean getScores, boolean getMaxScores, boolean fillSortFields) throws IOException
Grouper
getSecondPassCollector
in class Grouper<MutableValue>
IOException
Copyright © 2000-2017 Apache Software Foundation. All Rights Reserved.