Namespace Lucene.Net.Spatial.Util
Various spatial utilities.
Classes
CachingDoubleValueSource
Caches the doubleVal of another value source in a Dictionary<TKey, TValue> so that it is computed only once.
Note
This API is for internal purposes only and might change in incompatible ways in the next release.
DistanceToShapeValueSource
The distance from a provided Point to a Point retrieved from a ValueSource via ObjectVal(int). The distance is calculated via a Spatial4n.Distance.IDistanceCalculator.
Note
This API is experimental and might change in incompatible ways in the next release.
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.
Note
This API is for internal purposes only and might change in incompatible ways in the next release.
ShapeFieldCacheProvider<T>
Provides access to a ShapeFieldCache<T> for a given Lucene.Net.Index.AtomicReader.
If a Cache does not exist for the Reader, 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.Note
This API is for internal purposes only and might change in incompatible ways in the next release.
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.Note
This API is for internal purposes only and might change in incompatible ways in the next release.
ShapePredicateValueSource
A boolean Lucene.Net.Queries.Function.ValueSource that compares a shape from a provided Lucene.Net.Queries.Function.ValueSource with a given Spatial4n.Shapes.IShape and sees if it matches a given SpatialOperation (the predicate).
Note
This API is experimental and might change in incompatible ways in the next release.
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.
Note
This API is for internal purposes only and might change in incompatible ways in the next release.