public class ShapeValuesPredicate
extends java.lang.Object
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() |
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.Object
public TwoPhaseIterator iterator(LeafReaderContext ctx, DocIdSetIterator approximation) throws java.io.IOException
java.io.IOException
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
Copyright © 2000–2018 The Apache Software Foundation. All rights reserved.