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
    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)
    System.Object.Equals(System.Object, System.Object)
    System.Object.GetType()
    System.Object.MemberwiseClone()
    System.Object.ReferenceEquals(System.Object, System.Object)
    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
    System.Collections.Generic.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
    System.Collections.IDictionary fcontext
    Lucene.Net.Index.AtomicReaderContext readerContext
    Returns
    Type Description
    FunctionValues
    Overrides
    ValueSource.GetValues(IDictionary, AtomicReaderContext)
    • Improve this Doc
    • View Source
    Back to top Copyright © 2022 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.