public abstract class AbstractAllGroupsCollector<GROUP_VALUE_TYPE> extends SimpleCollector
This is an abstract version. Concrete implementations define what a group actually is and how it is internally collected.
| Constructor and Description |
|---|
AbstractAllGroupsCollector() |
| Modifier and Type | Method and Description |
|---|---|
int |
getGroupCount()
Returns the total number of groups for the executed search.
|
abstract Collection<GROUP_VALUE_TYPE> |
getGroups()
Returns the group values
|
void |
setScorer(Scorer scorer) |
collect, doSetNextReader, getLeafCollectorclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitneedsScorespublic int getGroupCount()
getGroups().size()
public abstract Collection<GROUP_VALUE_TYPE> 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 LeafCollectorsetScorer in class SimpleCollectorIOExceptionCopyright © 2000-2016 Apache Software Foundation. All Rights Reserved.