Class AllGroupsCollector<T>

java.lang.Object
org.apache.lucene.search.SimpleCollector
org.apache.lucene.search.grouping.AllGroupsCollector<T>
All Implemented Interfaces:
Collector, LeafCollector

public class AllGroupsCollector<T> extends SimpleCollector
A collector that collects all groups that match the query. Only the group value is collected, and the order is undefined. This collector does not determine the most relevant document of a group.
  • Field Details

    • groupSelector

      private final GroupSelector<T> groupSelector
    • groups

      private final Set<T> groups
  • Constructor Details

    • AllGroupsCollector

      public AllGroupsCollector(GroupSelector<T> groupSelector)
      Create a new AllGroupsCollector
      Parameters:
      groupSelector - the GroupSelector to determine groups
  • Method Details