Class SpatialRelatesFunction.SpatialRelations
java.lang.Object
org.elasticsearch.xpack.esql.expression.function.scalar.spatial.BinarySpatialFunction.BinarySpatialComparator<Boolean>
org.elasticsearch.xpack.esql.expression.function.scalar.spatial.SpatialRelatesFunction.SpatialRelations
- Enclosing class:
SpatialRelatesFunction
protected static class SpatialRelatesFunction.SpatialRelations
extends BinarySpatialFunction.BinarySpatialComparator<Boolean>
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final org.apache.lucene.document.ShapeField.QueryRelationprotected final ShapeIndexerFields inherited from class org.elasticsearch.xpack.esql.expression.function.scalar.spatial.BinarySpatialFunction.BinarySpatialComparator
coordinateEncoder, crsType, spatialCoordinateType -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedSpatialRelations(org.apache.lucene.document.ShapeField.QueryRelation queryRelation, SpatialCoordinateTypes spatialCoordinateType, CoordinateEncoder encoder, ShapeIndexer shapeIndexer) -
Method Summary
Modifier and TypeMethodDescriptionprotected Booleancompare(org.apache.lucene.util.BytesRef left, org.apache.lucene.util.BytesRef right) protected booleangeometryRelatesGeometry(org.apache.lucene.util.BytesRef left, org.apache.lucene.util.BytesRef right) protected booleangeometryRelatesGeometry(GeometryDocValueReader reader, org.apache.lucene.geo.Component2D rightComponent2D) protected voidprocessPointDocValuesAndConstant(BooleanBlock.Builder builder, int position, LongBlock leftValue, org.apache.lucene.geo.Component2D rightValue) protected voidprocessPointDocValuesAndSource(BooleanBlock.Builder builder, int position, LongBlock leftValue, BytesRefBlock rightValue) protected voidprocessSourceAndConstant(BooleanBlock.Builder builder, int position, BytesRefBlock left, org.apache.lucene.geo.Component2D right) protected voidprocessSourceAndSource(BooleanBlock.Builder builder, int position, BytesRefBlock left, BytesRefBlock right) Methods inherited from class org.elasticsearch.xpack.esql.expression.function.scalar.spatial.BinarySpatialFunction.BinarySpatialComparator
fromBytesRef
-
Field Details
-
queryRelation
protected final org.apache.lucene.document.ShapeField.QueryRelation queryRelation -
shapeIndexer
-
-
Constructor Details
-
SpatialRelations
protected SpatialRelations(org.apache.lucene.document.ShapeField.QueryRelation queryRelation, SpatialCoordinateTypes spatialCoordinateType, CoordinateEncoder encoder, ShapeIndexer shapeIndexer)
-
-
Method Details
-
compare
protected Boolean compare(org.apache.lucene.util.BytesRef left, org.apache.lucene.util.BytesRef right) throws IOException - Specified by:
comparein classBinarySpatialFunction.BinarySpatialComparator<Boolean>- Throws:
IOException
-
geometryRelatesGeometry
protected boolean geometryRelatesGeometry(org.apache.lucene.util.BytesRef left, org.apache.lucene.util.BytesRef right) throws IOException - Throws:
IOException
-
geometryRelatesGeometry
protected boolean geometryRelatesGeometry(GeometryDocValueReader reader, org.apache.lucene.geo.Component2D rightComponent2D) throws IOException - Throws:
IOException
-
processSourceAndConstant
protected void processSourceAndConstant(BooleanBlock.Builder builder, int position, BytesRefBlock left, org.apache.lucene.geo.Component2D right) throws IOException - Throws:
IOException
-
processSourceAndSource
protected void processSourceAndSource(BooleanBlock.Builder builder, int position, BytesRefBlock left, BytesRefBlock right) throws IOException - Throws:
IOException
-
processPointDocValuesAndConstant
protected void processPointDocValuesAndConstant(BooleanBlock.Builder builder, int position, LongBlock leftValue, org.apache.lucene.geo.Component2D rightValue) throws IOException - Throws:
IOException
-
processPointDocValuesAndSource
protected void processPointDocValuesAndSource(BooleanBlock.Builder builder, int position, LongBlock leftValue, BytesRefBlock rightValue) throws IOException - Throws:
IOException
-