Fork me on GitHub
  • API

    Show / Hide Table of Contents

    Class FieldComparer.NumericComparer<TNumber>

    Base FieldComparer class for numeric types

    Inheritance
    object
    FieldComparer
    FieldComparer<TNumber>
    FieldComparer.NumericComparer<TNumber>
    FieldComparer.ByteComparer
    FieldComparer.DoubleComparer
    FieldComparer.Int16Comparer
    FieldComparer.Int32Comparer
    FieldComparer.Int64Comparer
    FieldComparer.SingleComparer
    Inherited Members
    FieldComparer<TNumber>.Compare(int, int)
    FieldComparer<TNumber>.SetBottom(int)
    FieldComparer<TNumber>.SetTopValue<TValue>(TValue)
    FieldComparer<TNumber>.SetTopValue(TNumber)
    FieldComparer<TNumber>.GetValue(int)
    FieldComparer<TNumber>.this[int]
    FieldComparer<TNumber>.CompareBottom(int)
    FieldComparer<TNumber>.CompareTop(int)
    FieldComparer<TNumber>.Copy(int, int)
    FieldComparer<TNumber>.CompareValues(TNumber, TNumber)
    FieldComparer<TNumber>.CompareValues(object, object)
    FieldComparer.SetScorer(Scorer)
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    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
    FieldComparer<TNumber>.SetNextReader(AtomicReaderContext)
    Exceptions
    Type Condition
    IOException

    If there is a low-level IO error

    Back to top Copyright © 2024 The Apache Software Foundation, Licensed under the Apache License, Version 2.0
    Apache Lucene.Net, Lucene.Net, Apache, the Apache feather logo, and the Apache Lucene.Net project logo are trademarks of The Apache Software Foundation.
    All other marks mentioned may be trademarks or registered trademarks of their respective owners.