Fork me on GitHub
  • API

    Show / Hide Table of Contents

    Class DefFunction

    ValueSource implementation which only returns the values from the provided ValueSources which are available for a particular docId. Consequently, when combined with a ConstValueSource, this function serves as a way to return a default value when the values for a field are unavailable.

    Inheritance
    object
    ValueSource
    MultiFunction
    DefFunction
    Inherited Members
    MultiFunction.m_sources
    MultiFunction.GetDescription()
    MultiFunction.GetDescription(string, IList<ValueSource>)
    MultiFunction.ValsArr(IList<ValueSource>, IDictionary, AtomicReaderContext)
    MultiFunction.ToString(string, FunctionValues[], int)
    MultiFunction.CreateWeight(IDictionary, IndexSearcher)
    MultiFunction.GetHashCode()
    MultiFunction.Equals(object)
    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 class DefFunction : MultiFunction

    Constructors

    DefFunction(IList<ValueSource>)

    ValueSource implementation which only returns the values from the provided ValueSources which are available for a particular docId. Consequently, when combined with a ConstValueSource, this function serves as a way to return a default value when the values for a field are unavailable.

    Declaration
    public DefFunction(IList<ValueSource> sources)
    Parameters
    Type Name Description
    IList<ValueSource> sources

    Properties

    Name

    ValueSource implementation which only returns the values from the provided ValueSources which are available for a particular docId. Consequently, when combined with a ConstValueSource, this function serves as a way to return a default value when the values for a field are unavailable.

    Declaration
    protected override string Name { get; }
    Property Value
    Type Description
    string
    Overrides
    MultiFunction.Name

    Methods

    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 fcontext, AtomicReaderContext readerContext)
    Parameters
    Type Name Description
    IDictionary fcontext
    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.