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 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) |
public AbstractVisitingPrefixTreeFilter(com.spatial4j.core.shape.Shape queryShape, String fieldName, SpatialPrefixTree grid, int detailLevel, int prefixGridScanLevel)
public boolean equals(Object o)
equals
in class AbstractPrefixTreeFilter
public int hashCode()
hashCode
in class AbstractPrefixTreeFilter
Copyright © 2000-2014 Apache Software Foundation. All Rights Reserved.