public class AllGroupsCollector<T> extends SimpleCollector
| Constructor and Description |
|---|
AllGroupsCollector(GroupSelector<T> groupSelector)
Create a new AllGroupsCollector
|
| Modifier and Type | Method and Description |
|---|---|
void |
collect(int doc) |
protected void |
doSetNextReader(LeafReaderContext context) |
int |
getGroupCount()
Returns the total number of groups for the executed search.
|
Collection<T> |
getGroups()
Returns the group values
|
boolean |
needsScores() |
void |
setScorer(Scorer scorer) |
getLeafCollectorpublic AllGroupsCollector(GroupSelector<T> groupSelector)
groupSelector - the GroupSelector to determine groupspublic int getGroupCount()
getGroups().size()
public Collection<T> getGroups()
This is an unordered collections of group values.
public void setScorer(Scorer scorer) throws IOException
setScorer in interface LeafCollectorsetScorer in class SimpleCollectorIOExceptionprotected void doSetNextReader(LeafReaderContext context) throws IOException
doSetNextReader in class SimpleCollectorIOExceptionpublic void collect(int doc)
throws IOException
collect in interface LeafCollectorcollect in class SimpleCollectorIOExceptionpublic boolean needsScores()
Copyright © 2000-2018 Apache Software Foundation. All Rights Reserved.