Class ShapeValuesPredicate

java.lang.Object
org.apache.lucene.spatial.util.ShapeValuesPredicate
All Implemented Interfaces:
SegmentCacheable

public class ShapeValuesPredicate extends Object implements SegmentCacheable
Compares a shape from a provided 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()

WARNING: This API is experimental and might change in incompatible ways in the next release.