Interface IAbstractFirstPassGroupingCollector<TGroupValue>
LUCENENET specific interface used to apply covariance to TGroupValue to simulate Java's wildcard generics.
Inherited Members
ICollector.SetScorer(Scorer)
ICollector.SetNextReader(AtomicReaderContext)
ICollector.AcceptsDocsOutOfOrder
Namespace: Lucene.Net.Search.Grouping
Assembly: Lucene.Net.Grouping.dll
Syntax
public interface IAbstractFirstPassGroupingCollector<out TGroupValue> : ICollector
Type Parameters
Name | Description |
---|---|
TGroupValue |
Methods
GetTopGroups(int, bool)
Returns top groups, starting from offset. This may return null, if no groups were collected, or if the number of unique groups collected is <= offset.
Declaration
IEnumerable<ISearchGroup<out TGroupValue>> GetTopGroups(int groupOffset, bool fillFields)
Parameters
Type | Name | Description |
---|---|---|
int | groupOffset | The offset in the collected groups |
bool | fillFields | Whether to fill to SortValues |
Returns
Type | Description |
---|---|
IEnumerable<ISearchGroup<TGroupValue>> | top groups, starting from offset |
Remarks
LUCENENET NOTE: We must use IEnumerable<T> rather than ICollection<T> here because we need this to be covariant