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
|
ScoreMode |
scoreMode() |
void |
setScorer(Scorable 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(Scorable 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 ScoreMode scoreMode()
Copyright © 2000-2019 Apache Software Foundation. All Rights Reserved.