Show / Hide Table of Contents

    Class RangeMapSingleFunction

    RangeMapSingleFunction implements a map function over another ValueSource whose values fall within min and max inclusive to target.

    Normally used as an argument to a FunctionQuery

    NOTE: This was RangeMapFloatFunction in Lucene

    Inheritance
    System.Object
    ValueSource
    RangeMapSingleFunction
    Inherited Members
    ValueSource.ToString()
    ValueSource.NewContext(IndexSearcher)
    ValueSource.GetSortField(Boolean)
    Namespace: Lucene.Net.Queries.Function.ValueSources
    Assembly: Lucene.Net.Queries.dll
    Syntax
    public class RangeMapSingleFunction : ValueSource

    Constructors

    | Improve this Doc View Source

    RangeMapSingleFunction(ValueSource, Single, Single, ValueSource, ValueSource)

    Declaration
    public RangeMapSingleFunction(ValueSource source, float min, float max, ValueSource target, ValueSource def)
    Parameters
    Type Name Description
    ValueSource source
    System.Single min
    System.Single max
    ValueSource target
    ValueSource def
    | Improve this Doc View Source

    RangeMapSingleFunction(ValueSource, Single, Single, Single, Nullable<Single>)

    Declaration
    public RangeMapSingleFunction(ValueSource source, float min, float max, float target, float? def)
    Parameters
    Type Name Description
    ValueSource source
    System.Single min
    System.Single max
    System.Single target
    System.Nullable<System.Single> def

    Fields

    | Improve this Doc View Source

    m_defaultVal

    Declaration
    protected readonly ValueSource m_defaultVal
    Field Value
    Type Description
    ValueSource
    | Improve this Doc View Source

    m_max

    Declaration
    protected readonly float m_max
    Field Value
    Type Description
    System.Single
    | Improve this Doc View Source

    m_min

    Declaration
    protected readonly float m_min
    Field Value
    Type Description
    System.Single
    | Improve this Doc View Source

    m_source

    Declaration
    protected readonly ValueSource m_source
    Field Value
    Type Description
    ValueSource
    | Improve this Doc View Source

    m_target

    Declaration
    protected readonly ValueSource m_target
    Field Value
    Type Description
    ValueSource

    Methods

    | Improve this Doc View Source

    CreateWeight(IDictionary, IndexSearcher)

    Declaration
    public override void CreateWeight(IDictionary context, IndexSearcher searcher)
    Parameters
    Type Name Description
    IDictionary context
    IndexSearcher searcher
    Overrides
    ValueSource.CreateWeight(IDictionary, IndexSearcher)
    | Improve this Doc View Source

    Equals(Object)

    Declaration
    public override bool Equals(object o)
    Parameters
    Type Name Description
    System.Object o
    Returns
    Type Description
    System.Boolean
    Overrides
    ValueSource.Equals(Object)
    | Improve this Doc View Source

    GetDescription()

    Declaration
    public override string GetDescription()
    Returns
    Type Description
    System.String
    Overrides
    ValueSource.GetDescription()
    | Improve this Doc View Source

    GetHashCode()

    Declaration
    public override int GetHashCode()
    Returns
    Type Description
    System.Int32
    Overrides
    ValueSource.GetHashCode()
    | Improve this Doc View Source

    GetValues(IDictionary, AtomicReaderContext)

    Declaration
    public override FunctionValues GetValues(IDictionary context, AtomicReaderContext readerContext)
    Parameters
    Type Name Description
    IDictionary context
    AtomicReaderContext readerContext
    Returns
    Type Description
    FunctionValues
    Overrides
    ValueSource.GetValues(IDictionary, AtomicReaderContext)
    • Improve this Doc
    • View Source
    Back to top Copyright © 2020 Licensed to the Apache Software Foundation (ASF)