## Uses of Class
org.apache.lucene.search.grouping.GroupSelector

- - ### Uses of GroupSelector in org.apache.lucene.search.grouping

    Subclasses of GroupSelector in org.apache.lucene.search.grouping
    Modifier and Type | Class and Description
    --- | ---
    `class` | `TermGroupSelector` A GroupSelector implementation that groups via SortedDocValues
    `class` | `ValueSourceGroupSelector` A GroupSelector that groups via a ValueSource

    Fields in org.apache.lucene.search.grouping declared as GroupSelector
    Modifier and Type | Field and Description
    --- | ---
    `protected GroupSelector<T>` | SecondPassGroupingCollector.`groupSelector`

    Methods in org.apache.lucene.search.grouping that return GroupSelector
    Modifier and Type | Method and Description
    --- | ---
    `GroupSelector<T>` | FirstPassGroupingCollector.`getGroupSelector()`
    `GroupSelector<T>` | SecondPassGroupingCollector.`getGroupSelector()`

    Methods in org.apache.lucene.search.grouping with parameters of type GroupSelector
    Modifier and Type | Method and Description
    --- | ---
    `static <T> AllGroupHeadsCollector<T>` | AllGroupHeadsCollector.`newCollector(GroupSelector<T> selector, Sort sort)` Create a new AllGroupHeadsCollector based on the type of within-group Sort required

    Constructors in org.apache.lucene.search.grouping with parameters of type GroupSelector
    Constructor and Description
    `AllGroupsCollector(GroupSelector<T> groupSelector)` Create a new AllGroupsCollector
    `DistinctValuesCollector(GroupSelector<T> groupSelector, Collection<SearchGroup<T>> groups, GroupSelector<R> valueSelector)` Create a DistinctValuesCollector
    `DistinctValuesCollector(GroupSelector<T> groupSelector, Collection<SearchGroup<T>> groups, GroupSelector<R> valueSelector)` Create a DistinctValuesCollector
    `FirstPassGroupingCollector(GroupSelector<T> groupSelector, Sort groupSort, int topNGroups)` Create the first pass collector.
    `SecondPassGroupingCollector(GroupSelector<T> groupSelector, Collection<SearchGroup<T>> groups, GroupReducer<T,?> reducer)` Create a new SecondPassGroupingCollector
    `TopGroupsCollector(GroupSelector<T> groupSelector, Collection<SearchGroup<T>> groups, Sort groupSort, Sort withinGroupSort, int maxDocsPerGroup, boolean getScores, boolean getMaxScores, boolean fillSortFields)` Create a new TopGroupsCollector

Copyright © 2000-2018 Apache Software Foundation. All Rights Reserved.