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
    System.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[], Int32)
    MultiFunction.CreateWeight(IDictionary, IndexSearcher)
    MultiFunction.GetHashCode()
    MultiFunction.Equals(Object)
    ValueSource.ToString()
    ValueSource.NewContext(IndexSearcher)
    ValueSource.GetSortField(Boolean)
    Namespace: Lucene.Net.Queries.Function.ValueSources
    Assembly: Lucene.Net.Queries.dll
    Syntax
    public class DefFunction : MultiFunction

    Constructors

    | Improve this Doc View Source

    DefFunction(IList<ValueSource>)

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

    Properties

    | Improve this Doc View Source

    Name

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

    Methods

    | Improve this Doc View Source

    GetValues(IDictionary, AtomicReaderContext)

    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)
    • Improve this Doc
    • View Source
    Back to top Copyright © 2020 Licensed to the Apache Software Foundation (ASF)