public abstract class AbstractVisitingPrefixTreeQuery extends AbstractPrefixTreeQuery
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.
Modifier and Type | Class and Description |
---|---|
class |
AbstractVisitingPrefixTreeQuery.VisitorTemplate
An abstract class designed to make it easy to implement predicates or
other operations on a
SpatialPrefixTree indexed field. |
protected static class |
AbstractVisitingPrefixTreeQuery.VNode
A visitor node/cell found via the query shape for
AbstractVisitingPrefixTreeQuery.VisitorTemplate . |
AbstractPrefixTreeQuery.BaseTermsEnumTraverser
Modifier and Type | Field and Description |
---|---|
protected int |
prefixGridScanLevel |
detailLevel, fieldName, grid, queryShape
Constructor and Description |
---|
AbstractVisitingPrefixTreeQuery(org.locationtech.spatial4j.shape.Shape queryShape,
String fieldName,
SpatialPrefixTree grid,
int detailLevel,
int prefixGridScanLevel) |
createWeight, equals, getDocIdSet, hashCode
public AbstractVisitingPrefixTreeQuery(org.locationtech.spatial4j.shape.Shape queryShape, String fieldName, SpatialPrefixTree grid, int detailLevel, int prefixGridScanLevel)
Copyright © 2000-2017 Apache Software Foundation. All Rights Reserved.