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. |
createWeight
classHash, rewrite, sameClassAs, toString
protected 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)
Query
QueryCache
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 AbstractPrefixTreeQuery
Query.sameClassAs(Object)
,
Query.classHash()
public int hashCode()
Query
QueryCache
works properly.hashCode
in class AbstractPrefixTreeQuery
Query.equals(Object)
public java.lang.String toString(java.lang.String field)
Query
field
assumed to be the
default field and omitted.protected DocIdSet getDocIdSet(LeafReaderContext context) throws java.io.IOException
getDocIdSet
in class AbstractPrefixTreeQuery
java.io.IOException
Copyright © 2000–2019 The Apache Software Foundation. All rights reserved.