Package org.apache.lucene.spatial.prefix
Class AbstractVisitingPrefixTreeQuery
java.lang.Object
org.apache.lucene.search.Query
org.apache.lucene.spatial.prefix.AbstractPrefixTreeQuery
org.apache.lucene.spatial.prefix.AbstractVisitingPrefixTreeQuery
- Direct Known Subclasses:
IntersectsPrefixTreeQuery,WithinPrefixTreeQuery
Traverses a
SpatialPrefixTree indexed field, using the template and visitor design
patterns for subclasses to guide the traversal and collect matching documents.
Subclasses implement AbstractPrefixTreeQuery.getDocIdSet(org.apache.lucene.index.LeafReaderContext) by
instantiating a custom AbstractVisitingPrefixTreeQuery.VisitorTemplate subclass (i.e. an anonymous inner class) and
implement the required methods.
- NOTE: This API is for internal purposes only and might change in incompatible ways in the next release.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionclassAn abstract class designed to make it easy to implement predicates or other operations on aSpatialPrefixTreeindexed field.protected static classA visitor node/cell found via the query shape forAbstractVisitingPrefixTreeQuery.VisitorTemplate.Nested classes/interfaces inherited from class org.apache.lucene.spatial.prefix.AbstractPrefixTreeQuery
AbstractPrefixTreeQuery.BaseTermsEnumTraverser -
Field Summary
FieldsFields inherited from class org.apache.lucene.spatial.prefix.AbstractPrefixTreeQuery
detailLevel, fieldName, grid, queryShape -
Constructor Summary
ConstructorsConstructorDescriptionAbstractVisitingPrefixTreeQuery(org.locationtech.spatial4j.shape.Shape queryShape, String fieldName, SpatialPrefixTree grid, int detailLevel, int prefixGridScanLevel) -
Method Summary
Methods inherited from class org.apache.lucene.spatial.prefix.AbstractPrefixTreeQuery
createWeight, equals, getDocIdSet, hashCode, visit
-
Field Details
-
prefixGridScanLevel
protected final int prefixGridScanLevel
-
-
Constructor Details
-
AbstractVisitingPrefixTreeQuery
public AbstractVisitingPrefixTreeQuery(org.locationtech.spatial4j.shape.Shape queryShape, String fieldName, SpatialPrefixTree grid, int detailLevel, int prefixGridScanLevel)
-