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

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

  Subclasses of SecondPassGroupingCollector in org.apache.lucene.search.grouping
  Modifier and Type
  Class
  Description
  `class`
  `DistinctValuesCollector<T,R>`
  A second pass grouping collector that keeps track of distinct values for a specified field for the top N group.
  `class`
  `TopGroupsCollector<T>`
  A second-pass collector that collects the TopDocs for each group, and returns them as a `TopGroups` object