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(org.locationtech.spatial4j.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) |
createWeight
classHash, rewrite, sameClassAs, toString
protected final boolean multiOverlappingIndexedShapes
public ContainsPrefixTreeQuery(org.locationtech.spatial4j.shape.Shape queryShape, String fieldName, SpatialPrefixTree grid, int detailLevel, boolean multiOverlappingIndexedShapes)
public boolean equals(Object o)
equals
in class AbstractPrefixTreeQuery
public int hashCode()
hashCode
in class AbstractPrefixTreeQuery
protected DocIdSet getDocIdSet(LeafReaderContext context) throws IOException
getDocIdSet
in class AbstractPrefixTreeQuery
IOException
Copyright © 2000-2017 Apache Software Foundation. All Rights Reserved.