public class ShapeValuesPredicate extends java.lang.Object implements SegmentCacheable
ShapeValuesSource with a given Shape and sees
if it matches a given SpatialOperation (the predicate).
Consumers should call iterator(LeafReaderContext, DocIdSetIterator) to obtain a
TwoPhaseIterator over a particular DocIdSetIterator. The initial DocIdSetIterator
will be used as the approximation, and the SpatialOperation comparison will only be
performed in TwoPhaseIterator.matches()| Constructor and Description |
|---|
ShapeValuesPredicate(ShapeValuesSource shapeValuesource,
SpatialOperation op,
org.locationtech.spatial4j.shape.Shape queryShape) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object o) |
int |
hashCode() |
boolean |
isCacheable(LeafReaderContext ctx) |
TwoPhaseIterator |
iterator(LeafReaderContext ctx,
DocIdSetIterator approximation) |
java.lang.String |
toString() |
public ShapeValuesPredicate(ShapeValuesSource shapeValuesource, SpatialOperation op, org.locationtech.spatial4j.shape.Shape queryShape)
shapeValuesource - Must yield Shape instances from its objectVal(doc). If null
then the result is false. This is the left-hand (indexed) side.op - the predicatequeryShape - The shape on the right-hand (query) side.public java.lang.String toString()
toString in class java.lang.Objectpublic TwoPhaseIterator iterator(LeafReaderContext ctx, DocIdSetIterator approximation) throws java.io.IOException
java.io.IOExceptionpublic boolean equals(java.lang.Object o)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic boolean isCacheable(LeafReaderContext ctx)
isCacheable in interface SegmentCacheabletrue if the object can be cached against a given leafCopyright © 2000–2025 The Apache Software Foundation. All rights reserved.