All Classes and Interfaces
Class
Description
Base class for Lucene Queries on SpatialPrefixTree fields.
Traverses a
SpatialPrefixTree
indexed field, using the template and visitor design
patterns for subclasses to guide the traversal and collect matching documents.A visitor node/cell found via the query shape for
AbstractVisitingPrefixTreeQuery.VisitorTemplate
.The algorithm is implemented as envelope on envelope (rect on rect) overlays rather than complex
polygon on complex polygon overlays.
A base class for calculating a spatial relevance rank per document from a provided
ShapeValuesSource
returning a Rectangle
per-document.A SpatialStrategy for indexing and searching Rectangles by storing its coordinates in numeric
fields.
A TokenStream used internally by
PrefixTreeStrategy
.Caches the doubleVal of another value source in a HashMap so that it is computed only once.
Represents a grid cell.
Grid cells that share nothing with other cells when calling
Cell.getNextLevelCells(Shape)
might implement this interface.An Iterator of SpatialPrefixTree Cells.
A composite
SpatialStrategy
based on RecursivePrefixTreeStrategy
(RPT) and SerializedDVStrategy
(SDV).A Query that considers an "indexQuery" to have approximate results, and a follow-on
ShapeValuesSource is called to verify each hit from
TwoPhaseIterator.matches()
.Finds docs where its indexed shape
CONTAINS
the query shape.A PrefixTree for date ranges in which the levels of the tree occur at natural periods of time
(e.g.
The distance from a provided Point to a Point retrieved from an ShapeValuesSource.
A DoubleValuesSource that returns the distance for a
PointVectorStrategy
.Geo3d implementation of
BinaryCodec
Specialization of a
Geo3dShape
which represents a Circle
.Geo3d implementation of
DistanceCalculator
Specialization of a
Geo3dShape
which represents a Point
.Specialization of a
Geo3dShape
which represents a Rectangle
.A Spatial4j Shape wrapping a
GeoAreaShape
("Geo3D") -- a 3D planar geometry based
Spatial4j Shape implementation.Geo3d implementation of
S2ShapeFactory
Geo3d implementation of
SpatialContextFactory
A
SpatialPrefixTree
based on Geohashes.Factory for creating
GeohashPrefixTree
instances with useful defaultsComputes spatial facets in two dimensions as a grid of numbers.
Response structure
A Query matching documents that have an
SpatialRelation.INTERSECTS
(i.e.A spatial Intersects predicate that distinguishes an approximated match from an exact match based
on which cells are within the query shape.
The base for the original two SPT's: Geohash and Quad.
A SpatialPrefixTree for single-dimensional numbers and number ranges of fixed precision values
(not floating point).
Base interface for
Shape
s this prefix tree supports.A unit value Shape implemented as a stack of numbers, one for each level in the prefix tree.
A PrefixTree based on Number/Date ranges.
Facet response information
Holds a block of detailLevel counts aggregated to their parent level.
Uses a compact binary representation of 8 bytes to encode a spatial quad trie.
Factory for creating
PackedQuadPrefixTree
instances with useful defaults.Implementation of
ShapeFieldCacheProvider
designed for PrefixTreeStrategy
s that
index points (AND ONLY POINTS!).Simple
SpatialStrategy
which represents Points in two numeric fields.Computes facets on cells for
PrefixTreeStrategy
.A callback/visitor of facet counts.
An abstract SpatialStrategy based on
SpatialPrefixTree
.A
SpatialPrefixTree
which uses a quad
tree in which an indexed term will be generated for each cell, 'A', 'B', 'C', 'D'.Factory for creating
QuadPrefixTree
instances with useful defaultsTransforms a DoubleValuesSource using the formula v = k / (v + k)
A
PrefixTreeStrategy
which uses AbstractVisitingPrefixTreeQuery
.Spatial prefix tree for S2 Geometry.
Factory for creating
S2PrefixTree
instances with useful defaultsShape factory for Spatial contexts that support S2 geometry.
A SpatialStrategy based on serializing a Shape stored into BinaryDocValues.
The area of a Shape retrieved from an ShapeValuesSource
Bounded Cache of Shapes associated with docIds.
A DoubleValuesSource that returns the spatial distance between an input point and a document's
points in
ShapeFieldCacheProvider
.Provides access to a
ShapeFieldCache
for a given LeafReader
.Iterator over
Shape
objects for an index segmentCompares a shape from a provided
ShapeValuesSource
with a given Shape and sees if it
matches a given SpatialOperation
(the predicate).Produces
ShapeValues
per-segmentPrincipally holds the query
Shape
and the SpatialOperation
.Parses a string that usually looks like "OPERATION(SHAPE)" into a
SpatialArgs
object.A predicate that compares a stored geometry to a supplied geometry.
A spatial Prefix Tree, or Trie, which decomposes shapes into prefixed strings at variable lengths
corresponding to variable precision.
Abstract Factory for creating
SpatialPrefixTree
instances with useful defaults and passed
on configurations defined in a Map.The SpatialStrategy encapsulates an approach to indexing and searching based on shapes.
A basic implementation of
PrefixTreeStrategy
using a large TermInSetQuery
of all
the cells from SpatialPrefixTree.getTreeCellIterator(org.locationtech.spatial4j.shape.Shape, int)
.Exception thrown when the
SpatialStrategy
cannot implement the
requested operation.Finds docs where its indexed shape is
WITHIN
the query shape.