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,
java.util.Collection<SearchGroup<T>> groups,
GroupSelector<R> valueSelector)
Create a DistinctValuesCollector
|
| Modifier and Type | Method and Description |
|---|---|
java.util.List<DistinctValuesCollector.GroupCount<T,R>> |
getGroups()
Returns all unique values for each top N group.
|
collect, doSetNextReader, getGroupSelector, needsScores, setScorergetLeafCollectorpublic DistinctValuesCollector(GroupSelector<T> groupSelector, java.util.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 java.util.List<DistinctValuesCollector.GroupCount<T,R>> getGroups()
Copyright © 2000–2025 The Apache Software Foundation. All rights reserved.