Show / Hide Table of Contents

    Class ConstValueSource

    ConstValueSource returns a constant for all documents

    Inheritance
    System.Object
    ValueSource
    ConstNumberSource
    ConstValueSource
    Inherited Members
    ValueSource.ToString()
    ValueSource.CreateWeight(IDictionary, IndexSearcher)
    ValueSource.NewContext(IndexSearcher)
    ValueSource.GetSortField(Boolean)
    Namespace: Lucene.Net.Queries.Function.ValueSources
    Assembly: Lucene.Net.Queries.dll
    Syntax
    public class ConstValueSource : ConstNumberSource

    Constructors

    | Improve this Doc View Source

    ConstValueSource(Single)

    Declaration
    public ConstValueSource(float constant)
    Parameters
    Type Name Description
    System.Single constant

    Properties

    | Improve this Doc View Source

    Bool

    Declaration
    public override bool Bool { get; }
    Property Value
    Type Description
    System.Boolean
    Overrides
    ConstNumberSource.Bool
    | Improve this Doc View Source

    Double

    Declaration
    public override double Double { get; }
    Property Value
    Type Description
    System.Double
    Overrides
    ConstNumberSource.Double
    | Improve this Doc View Source

    Int32

    NOTE: This was getInt() in Lucene

    Declaration
    public override int Int32 { get; }
    Property Value
    Type Description
    System.Int32
    Overrides
    ConstNumberSource.Int32
    | Improve this Doc View Source

    Int64

    NOTE: This was getLong() in Lucene

    Declaration
    public override long Int64 { get; }
    Property Value
    Type Description
    System.Int64
    Overrides
    ConstNumberSource.Int64
    | Improve this Doc View Source

    Single

    NOTE: This was getFloat() in Lucene

    Declaration
    public override float Single { get; }
    Property Value
    Type Description
    System.Single
    Overrides
    ConstNumberSource.Single

    Methods

    | 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

    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)