public class SecondPassGroupingCollector<T> extends SimpleCollector
GroupReducer to each groupTopGroupsCollector,
DistinctValuesCollector| Modifier and Type | Field and Description |
|---|---|
protected GroupReducer<T,?> |
groupReducer |
protected Collection<SearchGroup<T>> |
groups |
protected GroupSelector<T> |
groupSelector |
protected int |
totalGroupedHitCount |
protected int |
totalHitCount |
| Constructor and Description |
|---|
SecondPassGroupingCollector(GroupSelector<T> groupSelector,
Collection<SearchGroup<T>> groups,
GroupReducer<T,?> reducer)
Create a new SecondPassGroupingCollector
|
| Modifier and Type | Method and Description |
|---|---|
void |
collect(int doc) |
protected void |
doSetNextReader(LeafReaderContext readerContext) |
GroupSelector<T> |
getGroupSelector() |
ScoreMode |
scoreMode() |
void |
setScorer(Scorable scorer) |
getLeafCollectorclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcompetitiveIteratorprotected final GroupSelector<T> groupSelector
protected final Collection<SearchGroup<T>> groups
protected final GroupReducer<T,?> groupReducer
protected int totalHitCount
protected int totalGroupedHitCount
public SecondPassGroupingCollector(GroupSelector<T> groupSelector, Collection<SearchGroup<T>> groups, GroupReducer<T,?> reducer)
groupSelector - the GroupSelector that defines groups for this searchgroups - the groups to collect documents forreducer - the reducer to apply to each grouppublic GroupSelector<T> getGroupSelector()
public ScoreMode scoreMode()
public void setScorer(Scorable scorer) throws IOException
setScorer in interface LeafCollectorsetScorer in class SimpleCollectorIOExceptionpublic void collect(int doc)
throws IOException
collect in interface LeafCollectorcollect in class SimpleCollectorIOExceptionprotected void doSetNextReader(LeafReaderContext readerContext) throws IOException
doSetNextReader in class SimpleCollectorIOExceptionCopyright © 2000-2024 Apache Software Foundation. All Rights Reserved.