Show / Hide Table of Contents

    Class ShapeFieldCacheDistanceValueSource

    An implementation of the Lucene ValueSource that returns the spatial distance between an input point and a document's points in ShapeFieldCacheProvider<T>. The shortest distance is returned if a document has more than one point.

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

    Constructors

    | Improve this Doc View Source

    ShapeFieldCacheDistanceValueSource(SpatialContext, ShapeFieldCacheProvider<IPoint>, IPoint, Double)

    Declaration
    public ShapeFieldCacheDistanceValueSource(SpatialContext ctx, ShapeFieldCacheProvider<IPoint> provider, IPoint from, double multiplier)
    Parameters
    Type Name Description
    SpatialContext ctx
    ShapeFieldCacheProvider<IPoint> provider
    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()

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