Show / Hide Table of Contents

    Class DistanceValueSource

    An implementation of the Lucene ValueSource model that returns the distance for a PointVectorStrategy.

    This is a Lucene.NET INTERNAL API, use at your own risk
    Inheritance
    System.Object
    ValueSource
    DistanceValueSource
    Inherited Members
    ValueSource.ToString()
    ValueSource.CreateWeight(IDictionary, IndexSearcher)
    ValueSource.NewContext(IndexSearcher)
    ValueSource.GetSortField(Boolean)
    Namespace: Lucene.Net.Spatial.Vector
    Assembly: Lucene.Net.Spatial.dll
    Syntax
    public class DistanceValueSource : ValueSource

    Constructors

    | Improve this Doc View Source

    DistanceValueSource(PointVectorStrategy, IPoint, Double)

    Constructor.

    Declaration
    public DistanceValueSource(PointVectorStrategy strategy, IPoint from, double multiplier)
    Parameters
    Type Name Description
    PointVectorStrategy strategy
    IPoint from
    System.Double multiplier

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

    Returns the ValueSource description.

    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)

    Returns the FunctionValues used by the function query.

    Declaration
    public override FunctionValues GetValues(IDictionary context, AtomicReaderContext readerContext)
    Parameters
    Type Name Description
    IDictionary context
    AtomicReaderContext readerContext
    Returns
    Type Description
    FunctionValues
    • Improve this Doc
    • View Source
    Back to top Copyright © 2020 Licensed to the Apache Software Foundation (ASF)