public abstract class DistinctValuesCollector<T> extends SimpleCollector
Modifier and Type | Class and Description |
---|---|
static class |
DistinctValuesCollector.GroupCount<T>
Returned by
getGroups() ,
representing the value and set of distinct values for the group. |
Constructor and Description |
---|
DistinctValuesCollector() |
Modifier and Type | Method and Description |
---|---|
abstract List<DistinctValuesCollector.GroupCount<T>> |
getGroups()
Returns all unique values for each top N group.
|
boolean |
needsScores()
Indicates if document scores are needed by this collector.
|
collect, doSetNextReader, getLeafCollector, setScorer
public DistinctValuesCollector()
public abstract List<DistinctValuesCollector.GroupCount<T>> getGroups()
public boolean needsScores()
Collector
true
if scores are needed.