AllGroupsCollectorManager (Lucene 10.5.1 grouping API)
Description: declaration: package: org.apache.lucene.search.grouping, class: AllGroupsCollectorManager

Package org.apache.lucene.search.grouping

# Class AllGroupsCollectorManager<T>

java.lang.Object
org.apache.lucene.search.grouping.AllGroupsCollectorManager<T>

All Implemented Interfaces:
  `CollectorManager<AllGroupsCollector<T>,Collection<T>>`

public class AllGroupsCollectorManager<T> extends Object implements CollectorManager<AllGroupsCollector<T>,Collection<T>>
A CollectorManager implementation for AllGroupsCollector.

WARNING: This API is experimental and might change in incompatible ways in the next release.

- ## Constructor Summary

  Constructors
  Constructor
  Description
  `AllGroupsCollectorManager(Supplier<GroupSelector<T>> groupSelectorFactory)`
  Creates a new AllGroupsCollectorManager.

- ## Method Summary

  Modifier and Type
  Method
  Description
  `AllGroupsCollector<T>`
  `newCollector()`
  `Collection<T>`
  `reduce(Collection<AllGroupsCollector<T>> collectors)`

  ### Methods inherited from class java.lang.Object

  `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- ## Constructor Details

  - ### AllGroupsCollectorManager

    public AllGroupsCollectorManager(Supplier<GroupSelector<T>> groupSelectorFactory)
    Creates a new AllGroupsCollectorManager.
    Parameters:
      `groupSelectorFactory` - factory to create group selectors for each collector

- ## Method Details

  - ### newCollector

    public AllGroupsCollector<T> newCollector()
    Specified by:
      `newCollector` in interface `CollectorManager<AllGroupsCollector<T>,Collection<T>>`

  - ### reduce

    public Collection<T> reduce(Collection<AllGroupsCollector<T>> collectors)
    Specified by:
      `reduce` in interface `CollectorManager<AllGroupsCollector<T>,Collection<T>>`