public class DistinctValuesCollector<T,R> extends SecondPassGroupingCollector<T>
Modifier and Type | Class and Description |
---|---|
static class |
DistinctValuesCollector.GroupCount<T,R>
Returned by
getGroups() ,
representing the value and set of distinct values for the group. |
groupReducer, groups, groupSelector, totalGroupedHitCount, totalHitCount
Constructor and Description |
---|
DistinctValuesCollector(GroupSelector<T> groupSelector,
Collection<SearchGroup<T>> groups,
GroupSelector<R> valueSelector)
Create a DistinctValuesCollector
|
Modifier and Type | Method and Description |
---|---|
List<DistinctValuesCollector.GroupCount<T,R>> |
getGroups()
Returns all unique values for each top N group.
|
collect, doSetNextReader, getGroupSelector, scoreMode, setScorer
getLeafCollector
public DistinctValuesCollector(GroupSelector<T> groupSelector, Collection<SearchGroup<T>> groups, GroupSelector<R> valueSelector)
groupSelector
- the group selector to determine the top-level groupsgroups
- the top-level groups to collect forvalueSelector
- a group selector to determine which values to collect per-grouppublic List<DistinctValuesCollector.GroupCount<T,R>> getGroups()
Copyright © 2000-2019 Apache Software Foundation. All Rights Reserved.