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.
DistanceToShapeValueSource
The distance from a provided Point to a Point retrieved from a ValueSource via Lucene.Net.Queries.Function.FunctionValues.ObjectVal(System.Int32). The distance is calculated via a Spatial4n.Core.Distance.IDistanceCalculator.
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.
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.
ShapeFieldCacheProvider<T>
Provides access to a ShapeFieldCache<T> for a given Lucene.Net.Index.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 Lucene.Net.Queries.Function.ValueSource that compares a shape from a provided Lucene.Net.Queries.Function.ValueSource with a given Spatial4n.Core.Shapes.IShape and sees if it matches a given SpatialOperation (the predicate).
ValueSourceFilter
Lucene.Net.Search.Filter that matches all documents where a Lucene.Net.Queries.Function.ValueSource is
in between a range of min
and max
inclusive.