public class ContainsPrefixTreeQuery extends AbstractPrefixTreeQuery
CONTAINS the query shape. For use on RecursivePrefixTreeStrategy.AbstractPrefixTreeQuery.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 |
|---|
ContainsPrefixTreeQuery(com.spatial4j.core.shape.Shape queryShape,
String fieldName,
SpatialPrefixTree grid,
int detailLevel,
boolean multiOverlappingIndexedShapes) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object o) |
protected DocIdSet |
getDocIdSet(LeafReaderContext context) |
int |
hashCode() |
String |
toString(String field)
Prints a query to a string, with
field assumed to be the
default field and omitted. |
createWeightprotected final boolean multiOverlappingIndexedShapes
public ContainsPrefixTreeQuery(com.spatial4j.core.shape.Shape queryShape,
String fieldName,
SpatialPrefixTree grid,
int detailLevel,
boolean multiOverlappingIndexedShapes)
public boolean equals(Object o)
equals in class AbstractPrefixTreeQuerypublic int hashCode()
hashCode in class AbstractPrefixTreeQuerypublic String toString(String field)
Queryfield assumed to be the
default field and omitted.protected DocIdSet getDocIdSet(LeafReaderContext context) throws IOException
getDocIdSet in class AbstractPrefixTreeQueryIOExceptionCopyright © 2000–2016 The Apache Software Foundation. All rights reserved.