public abstract class AbstractVisitingPrefixTreeFilter extends AbstractPrefixTreeFilter
SpatialPrefixTree indexed field, using the template and
visitor design patterns for subclasses to guide the traversal and collect
matching documents.
Subclasses implement Filter.getDocIdSet(org.apache.lucene.index.LeafReaderContext,
org.apache.lucene.util.Bits) by instantiating a custom AbstractVisitingPrefixTreeFilter.VisitorTemplate subclass (i.e. an anonymous inner class) and implement the
required methods.
| Modifier and Type | Class and Description |
|---|---|
class |
AbstractVisitingPrefixTreeFilter.VisitorTemplate
An abstract class designed to make it easy to implement predicates or
other operations on a
SpatialPrefixTree indexed field. |
protected static class |
AbstractVisitingPrefixTreeFilter.VNode
A visitor node/cell found via the query shape for
AbstractVisitingPrefixTreeFilter.VisitorTemplate. |
AbstractPrefixTreeFilter.BaseTermsEnumTraverser| Modifier and Type | Field and Description |
|---|---|
protected int |
prefixGridScanLevel |
detailLevel, fieldName, grid, queryShape| Constructor and Description |
|---|
AbstractVisitingPrefixTreeFilter(com.spatial4j.core.shape.Shape queryShape,
String fieldName,
SpatialPrefixTree grid,
int detailLevel,
int prefixGridScanLevel) |
equals, hashCodecreateWeight, getDocIdSetpublic AbstractVisitingPrefixTreeFilter(com.spatial4j.core.shape.Shape queryShape,
String fieldName,
SpatialPrefixTree grid,
int detailLevel,
int prefixGridScanLevel)
Copyright © 2000-2015 Apache Software Foundation. All Rights Reserved.