public abstract class AllGroupsCollector<T> extends SimpleCollector
This is an abstract version. Concrete implementations define what a group actually is and how it is internally collected.
Constructor and Description |
---|
AllGroupsCollector() |
Modifier and Type | Method and Description |
---|---|
int |
getGroupCount()
Returns the total number of groups for the executed search.
|
abstract Collection<T> |
getGroups()
Returns the group values
|
boolean |
needsScores() |
void |
setScorer(Scorer scorer) |
collect, doSetNextReader, getLeafCollector
public int getGroupCount()
getGroups().size()
public abstract Collection<T> getGroups()
This is an unordered collections of group values. For each group that matched the query there is a BytesRef
representing a group value.
public void setScorer(Scorer scorer) throws IOException
setScorer
in interface LeafCollector
setScorer
in class SimpleCollector
IOException
public boolean needsScores()
Copyright © 2000-2017 Apache Software Foundation. All Rights Reserved.