Fork me on GitHub
  • API

    Show / Hide Table of Contents

    Class SimpleSingleFunction

    A simple float function with a single argument

    NOTE: This was SimpleFloatFunction in Lucene
    Inheritance
    object
    ValueSource
    SingularFunction
    SimpleSingleFunction
    Inherited Members
    SingularFunction.m_source
    SingularFunction.Name
    SingularFunction.GetDescription()
    SingularFunction.GetHashCode()
    SingularFunction.Equals(object)
    SingularFunction.CreateWeight(IDictionary, IndexSearcher)
    ValueSource.ToString()
    ValueSource.NewContext(IndexSearcher)
    ValueSource.GetSortField(bool)
    object.Equals(object, object)
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    Namespace: Lucene.Net.Queries.Function.ValueSources
    Assembly: Lucene.Net.Queries.dll
    Syntax
    public abstract class SimpleSingleFunction : SingularFunction

    Constructors

    SimpleSingleFunction(ValueSource)

    A simple float function with a single argument

    NOTE: This was SimpleFloatFunction in Lucene
    Declaration
    protected SimpleSingleFunction(ValueSource source)
    Parameters
    Type Name Description
    ValueSource source

    Methods

    Func(int, FunctionValues)

    A simple float function with a single argument

    NOTE: This was SimpleFloatFunction in Lucene
    Declaration
    protected abstract float Func(int doc, FunctionValues vals)
    Parameters
    Type Name Description
    int doc
    FunctionValues vals
    Returns
    Type Description
    float

    GetValues(IDictionary, AtomicReaderContext)

    Gets the values for this reader and the context that was previously passed to CreateWeight(IDictionary, IndexSearcher)

    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)
    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.