public class FunctionDistinctValuesCollector extends AbstractDistinctValuesCollector<FunctionDistinctValuesCollector.GroupCount>
AbstractDistinctValuesCollector.| Modifier and Type | Class and Description |
|---|---|
static class |
FunctionDistinctValuesCollector.GroupCount
Holds distinct values for a single group.
|
| Constructor and Description |
|---|
FunctionDistinctValuesCollector(Map<?,?> vsContext,
ValueSource groupSource,
ValueSource countSource,
Collection<SearchGroup<MutableValue>> groups) |
| Modifier and Type | Method and Description |
|---|---|
void |
collect(int doc) |
protected void |
doSetNextReader(LeafReaderContext context) |
List<FunctionDistinctValuesCollector.GroupCount> |
getGroups()
Returns all unique values for each top N group.
|
boolean |
needsScores() |
getLeafCollector, setScorerpublic FunctionDistinctValuesCollector(Map<?,?> vsContext, ValueSource groupSource, ValueSource countSource, Collection<SearchGroup<MutableValue>> groups)
public List<FunctionDistinctValuesCollector.GroupCount> getGroups()
AbstractDistinctValuesCollectorgetGroups in class AbstractDistinctValuesCollector<FunctionDistinctValuesCollector.GroupCount>public void collect(int doc)
throws IOException
collect in interface LeafCollectorcollect in class SimpleCollectorIOExceptionprotected void doSetNextReader(LeafReaderContext context) throws IOException
doSetNextReader in class SimpleCollectorIOExceptionpublic boolean needsScores()
Copyright © 2000-2016 Apache Software Foundation. All Rights Reserved.