Show / Hide Table of Contents

    Namespace Lucene.Net.Spatial.Util

    Various spatial utilities.

    Classes

    CachingDoubleValueSource

    Caches the doubleVal of another value source in a HashMap so that it is computed only once.

    This is a Lucene.NET INTERNAL API, use at your own risk

    DistanceToShapeValueSource

    The distance from a provided Point to a Point retrieved from a ValueSource via ObjectVal(Int32). The distance is calculated via a .

    This is a Lucene.NET EXPERIMENTAL API, use at your own risk

    ShapeFieldCache<T>

    Bounded Cache of Shapes associated with docIds. Note, multiple Shapes can be associated with a given docId

    WARNING: This class holds the data in an extremely inefficient manner as all Points are in memory as objects and they are stored in many Lists (one per document). So it works but doesn't scale. It will be replaced in the future.

    This is a Lucene.NET INTERNAL API, use at your own risk

    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

    ShapeFieldCacheProvider<T>

    Provides access to a ShapeFieldCache<T> for a given AtomicReader.

    If a Cache does not exist for the TextReader, then it is built by iterating over the all terms for a given field, reconstructing the Shape from them, and adding them to the Cache.

    ShapePredicateValueSource

    A boolean ValueSource that compares a shape from a provided ValueSource with a given Shape and sees if it matches a given SpatialOperation (the predicate).

    This is a Lucene.NET EXPERIMENTAL API, use at your own risk

    ValueSourceFilter

    Filter that matches all documents where a ValueSource is in between a range of min and max inclusive.

    This is a Lucene.NET INTERNAL API, use at your own risk
    • Improve this Doc
    Back to top Copyright © 2020 Licensed to the Apache Software Foundation (ASF)