Namespace Lucene.Net.Spatial.Util
Classes
CachingDoubleValueSource
Caches the doubleVal of another value source in a HashMap so that it is computed only once. @lucene.internal
DistanceToShapeValueSource
The distance from a provided Point to a Point retrieved from a ValueSource via ObjectVal(Int32). The distance is calculated via a IDistanceCalculator.
@lucene.experimental
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.
@lucene.internal
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.
@lucene.internal
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 IShape and sees if it matches a given SpatialOperation (the predicate).
@lucene.experimental
ValueSourceFilter
Filter that matches all documents where a ValueSource is
in between a range of min
and max
inclusive.
@lucene.internal