Class SpatialContains.SpatialRelationsContains
java.lang.Object
org.elasticsearch.xpack.esql.expression.function.scalar.spatial.BinarySpatialFunction.BinarySpatialComparator<Boolean>
org.elasticsearch.xpack.esql.expression.function.scalar.spatial.SpatialRelatesFunction.SpatialRelations
org.elasticsearch.xpack.esql.expression.function.scalar.spatial.SpatialContains.SpatialRelationsContains
- Enclosing class:
SpatialContains
protected static final class SpatialContains.SpatialRelationsContains
extends SpatialRelatesFunction.SpatialRelations
We override the normal behaviour for CONTAINS because we need to test each component separately.
This applies to multi-component geometries (MultiPolygon, etc.) as well as polygons that cross the dateline.
-
Field Summary
Fields inherited from class org.elasticsearch.xpack.esql.expression.function.scalar.spatial.SpatialRelatesFunction.SpatialRelations
queryRelation, shapeIndexerFields inherited from class org.elasticsearch.xpack.esql.expression.function.scalar.spatial.BinarySpatialFunction.BinarySpatialComparator
coordinateEncoder, crsType, spatialCoordinateType -
Method Summary
Modifier and TypeMethodDescriptionprotected booleangeometryRelatesGeometry(org.apache.lucene.util.BytesRef left, org.apache.lucene.util.BytesRef right) protected voidprocessPointDocValuesAndSource(BooleanBlock.Builder builder, int position, LongBlock leftValue, BytesRefBlock rightValue) protected voidprocessSourceAndSource(BooleanBlock.Builder builder, int position, BytesRefBlock left, BytesRefBlock right) Methods inherited from class org.elasticsearch.xpack.esql.expression.function.scalar.spatial.SpatialRelatesFunction.SpatialRelations
compare, compareGeometryAndGrid, geometryRelatesGeometry, processGeoPointDocValuesAndConstantGrid, processGeoPointDocValuesAndSourceGrid, processPointDocValuesAndConstant, processSourceAndConstant, processSourceAndConstantGrid, processSourceAndSourceGridMethods inherited from class org.elasticsearch.xpack.esql.expression.function.scalar.spatial.BinarySpatialFunction.BinarySpatialComparator
fromBytesRef
-
Method Details
-
geometryRelatesGeometry
protected boolean geometryRelatesGeometry(org.apache.lucene.util.BytesRef left, org.apache.lucene.util.BytesRef right) throws IOException - Overrides:
geometryRelatesGeometryin classSpatialRelatesFunction.SpatialRelations- Throws:
IOException
-
processSourceAndSource
protected void processSourceAndSource(BooleanBlock.Builder builder, int position, BytesRefBlock left, BytesRefBlock right) throws IOException - Overrides:
processSourceAndSourcein classSpatialRelatesFunction.SpatialRelations- Throws:
IOException
-
processPointDocValuesAndSource
protected void processPointDocValuesAndSource(BooleanBlock.Builder builder, int position, LongBlock leftValue, BytesRefBlock rightValue) throws IOException - Overrides:
processPointDocValuesAndSourcein classSpatialRelatesFunction.SpatialRelations- Throws:
IOException
-