Class FieldComparer.NumericComparer<TNumber>
Base FieldComparer class for numeric types
Inherited Members
Namespace: Lucene.Net.Search
Assembly: Lucene.Net.dll
Syntax
public abstract class FieldComparer.NumericComparer<TNumber> : FieldComparer<TNumber> where TNumber : Number
Type Parameters
Name | Description |
---|---|
TNumber |
Constructors
NumericComparer(string, TNumber)
Base FieldComparer class for numeric types
Declaration
protected NumericComparer(string field, TNumber missingValue)
Parameters
Type | Name | Description |
---|---|---|
string | field | |
TNumber | missingValue |
Fields
m_docsWithField
Base FieldComparer class for numeric types
Declaration
protected IBits m_docsWithField
Field Value
Type | Description |
---|---|
IBits |
m_field
Base FieldComparer class for numeric types
Declaration
protected readonly string m_field
Field Value
Type | Description |
---|---|
string |
m_missingValue
Base FieldComparer class for numeric types
Declaration
protected readonly TNumber m_missingValue
Field Value
Type | Description |
---|---|
TNumber |
Methods
SetNextReader(AtomicReaderContext)
Set a new AtomicReaderContext. All subsequent docIDs are relative to the current reader (you must add docBase if you need to map it to a top-level docID).
Declaration
public override FieldComparer SetNextReader(AtomicReaderContext context)
Parameters
Type | Name | Description |
---|---|---|
AtomicReaderContext | context | Current reader context |
Returns
Type | Description |
---|---|
FieldComparer | The comparer to use for this segment; most comparers can just return "this" to reuse the same comparer across segments |
Overrides
Exceptions
Type | Condition |
---|---|
IOException | If there is a low-level IO error |