public abstract class AbstractVisitingPrefixTreeFilter extends AbstractPrefixTreeFilter
SpatialPrefixTree indexed field, using the template &
visitor design patterns for subclasses to guide the traversal and collect
matching documents.
Subclasses implement Filter.getDocIdSet(org.apache.lucene.index.AtomicReaderContext,
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 Cell/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) |
public AbstractVisitingPrefixTreeFilter(com.spatial4j.core.shape.Shape queryShape,
String fieldName,
SpatialPrefixTree grid,
int detailLevel,
int prefixGridScanLevel)
public boolean equals(Object o)
equals in class AbstractPrefixTreeFilterpublic int hashCode()
hashCode in class AbstractPrefixTreeFilterCopyright © 2000-2013 Apache Software Foundation. All Rights Reserved.