Class AbstractAllGroupHeadsCollector_GroupHead
Represents a group head. A group head is the most relevant document for a particular group. The relevancy is usually based on the sort.
The group head contains a group value with its associated most relevant document id.
Inheritance
Inherited Members
Namespace: Lucene.Net.Search.Grouping
Assembly: Lucene.Net.Grouping.dll
Syntax
public abstract class AbstractAllGroupHeadsCollector_GroupHeadRemarks
LUCENENET: moved this class from being a nested class of AbstractAllGroupHeadsCollector<GH>, made it non-generic so the generic closing type doesn't need to be specified in classes that use AbstractAllGroupHeadsCollector_GroupHead as a generic closing type, and renamed it from GroupHead to AbstractAllGroupHeadsCollector_GroupHead to avoid naming conflicts with nested classes named GroupHead in derived classes of AbstractAllGroupHeadsCollector.
Constructors
| Improve this Doc View SourceAbstractAllGroupHeadsCollector_GroupHead(Int32)
Declaration
protected AbstractAllGroupHeadsCollector_GroupHead(int doc)Parameters
| Type | Name | Description | 
|---|---|---|
| System.Int32 | doc | 
Properties
| Improve this Doc View SourceDoc
Declaration
public int Doc { get; protected set; }Property Value
| Type | Description | 
|---|---|
| System.Int32 | 
Methods
| Improve this Doc View SourceCompare(Int32, Int32)
Compares the specified document for a specified comparer against the current most relevant document.
Declaration
public abstract int Compare(int compIDX, int doc)Parameters
| Type | Name | Description | 
|---|---|---|
| System.Int32 | compIDX | The comparer index of the specified comparer. | 
| System.Int32 | doc | The specified document. | 
Returns
| Type | Description | 
|---|---|
| System.Int32 | -1 if the specified document wasn't competitive against the current most relevant document, 1 if the specified document was competitive against the current most relevant document. Otherwise 0. | 
Exceptions
| Type | Condition | 
|---|---|
| System.IO.IOException | If I/O related errors occur | 
UpdateDocHead(Int32)
Updates the current most relevant document with the specified document.
Declaration
public abstract void UpdateDocHead(int doc)Parameters
| Type | Name | Description | 
|---|---|---|
| System.Int32 | doc | The specified document | 
Exceptions
| Type | Condition | 
|---|---|
| System.IO.IOException | If I/O related errors occur |