public class ContainsPrefixTreeFilter extends AbstractPrefixTreeFilter
CONTAINS
the query shape. For use on RecursivePrefixTreeStrategy
.AbstractPrefixTreeFilter.BaseTermsEnumTraverser
Modifier and Type | Field and Description |
---|---|
protected boolean |
multiOverlappingIndexedShapes
If the spatial data for a document is comprised of multiple overlapping or adjacent parts,
it might fail to match a query shape when doing the CONTAINS predicate when the sum of
those shapes contain the query shape but none do individually.
|
detailLevel, fieldName, grid, queryShape
Constructor and Description |
---|
ContainsPrefixTreeFilter(com.spatial4j.core.shape.Shape queryShape,
String fieldName,
SpatialPrefixTree grid,
int detailLevel,
boolean multiOverlappingIndexedShapes) |
protected final boolean multiOverlappingIndexedShapes
public ContainsPrefixTreeFilter(com.spatial4j.core.shape.Shape queryShape, String fieldName, SpatialPrefixTree grid, int detailLevel, boolean multiOverlappingIndexedShapes)
public boolean equals(Object o)
equals
in class AbstractPrefixTreeFilter
public int hashCode()
hashCode
in class AbstractPrefixTreeFilter
public DocIdSet getDocIdSet(LeafReaderContext context, Bits acceptDocs) throws IOException
getDocIdSet
in class Filter
IOException
Copyright © 2000-2015 Apache Software Foundation. All Rights Reserved.