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,
java.lang.String fieldName,
SpatialPrefixTree grid,
int detailLevel,
boolean multiOverlappingIndexedShapes) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object o)
Override and implement query instance equivalence properly in a subclass.
|
protected DocIdSet |
getDocIdSet(LeafReaderContext context) |
int |
hashCode()
Override and implement query hash code properly in a subclass.
|
java.lang.String |
toString(java.lang.String field)
Prints a query to a string, with
field assumed to be the
default field and omitted. |
createWeightclassHash, rewrite, sameClassAs, toStringprotected final boolean multiOverlappingIndexedShapes
public ContainsPrefixTreeQuery(org.locationtech.spatial4j.shape.Shape queryShape,
java.lang.String fieldName,
SpatialPrefixTree grid,
int detailLevel,
boolean multiOverlappingIndexedShapes)
public boolean equals(java.lang.Object o)
QueryQueryCache works properly.
Typically a query will be equal to another only if it's an instance of
the same class and its document-filtering properties are identical that other
instance. Utility methods are provided for certain repetitive code.equals in class AbstractPrefixTreeQueryQuery.sameClassAs(Object),
Query.classHash()public int hashCode()
QueryQueryCache works properly.hashCode in class AbstractPrefixTreeQueryQuery.equals(Object)public java.lang.String toString(java.lang.String field)
Queryfield assumed to be the
default field and omitted.protected DocIdSet getDocIdSet(LeafReaderContext context) throws java.io.IOException
getDocIdSet in class AbstractPrefixTreeQueryjava.io.IOExceptionCopyright © 2000–2025 The Apache Software Foundation. All rights reserved.