Class TermAllGroupsCollector
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.
Implementation detail: an int hash set (SentinelIntSet) is used to detect if a group is already added to the total count. For each segment the int set is cleared and filled with previous counted groups that occur in the new segment.
@lucene.experimentalInherited Members
Assembly: Lucene.Net.Grouping.dll
Syntax
public class TermAllGroupsCollector : AbstractAllGroupsCollector<BytesRef>, IAbstractAllGroupsCollector<BytesRef>, ICollector
Constructors
Name | Description |
---|---|
TermAllGroupsCollector(String) | Constructs a AbstractAllGroupsCollector<TGroupValue>. This sets the initial allocation size for the internal int set and group list to 128. |
TermAllGroupsCollector(String, Int32) | Expert: Constructs a AbstractAllGroupsCollector<TGroupValue> |
Properties
Name | Description |
---|---|
Groups |
Methods
Name | Description |
---|---|
Collect(Int32) | |
SetNextReader(AtomicReaderContext) |