Show / Hide Table of Contents

    Class DualSingleFunction

    Abstract ValueSource implementation which wraps two ValueSources and applies an extendible function to their values.

    NOTE: This was DualFloatFunction in Lucene

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

    Constructors

    | Improve this Doc View Source

    DualSingleFunction(ValueSource, ValueSource)

    Declaration
    public DualSingleFunction(ValueSource a, ValueSource b)
    Parameters
    Type Name Description
    ValueSource a

    the base.

    ValueSource b

    the exponent.

    Fields

    | Improve this Doc View Source

    m_a

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

    m_b

    Declaration
    protected readonly ValueSource m_b
    Field Value
    Type Description
    ValueSource

    Properties

    | Improve this Doc View Source

    Name

    Declaration
    protected abstract string Name { get; }
    Property Value
    Type Description
    System.String

    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

    Func(Int32, FunctionValues, FunctionValues)

    Declaration
    protected abstract float Func(int doc, FunctionValues aVals, FunctionValues bVals)
    Parameters
    Type Name Description
    System.Int32 doc
    FunctionValues aVals
    FunctionValues bVals
    Returns
    Type Description
    System.Single
    | 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)