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) |
getLeafCollector
public 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 LeafCollector
setScorer
in class SimpleCollector
IOException
protected void doSetNextReader(LeafReaderContext context) throws IOException
doSetNextReader
in class SimpleCollector
IOException
public void collect(int doc) throws IOException
collect
in interface LeafCollector
collect
in class SimpleCollector
IOException
public ScoreMode scoreMode()
Copyright © 2000-2019 Apache Software Foundation. All Rights Reserved.