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 booleancompareGeometryAndGrid(org.elasticsearch.geometry.Geometry geometry, long gridId, DataType gridType) 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 voidprocessGeoPointDocValuesAndConstantGrid(BooleanBlock.Builder builder, int position, LongBlock encodedPoint, long gridId, DataType gridType) protected voidprocessGeoPointDocValuesAndSourceGrid(BooleanBlock.Builder builder, int position, LongBlock encodedPoint, LongBlock gridIds, DataType gridType) 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 voidprocessSourceAndConstantGrid(BooleanBlock.Builder builder, int position, BytesRefBlock wkb, long gridId, DataType gridType) protected voidprocessSourceAndSource(BooleanBlock.Builder builder, int position, BytesRefBlock left, BytesRefBlock right) protected voidprocessSourceAndSourceGrid(BooleanBlock.Builder builder, int position, BytesRefBlock wkb, LongBlock gridIds, DataType gridType) 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
-
processSourceAndConstantGrid
protected void processSourceAndConstantGrid(BooleanBlock.Builder builder, int position, BytesRefBlock wkb, long gridId, DataType gridType) -
processSourceAndSourceGrid
protected void processSourceAndSourceGrid(BooleanBlock.Builder builder, int position, BytesRefBlock wkb, LongBlock gridIds, DataType gridType) -
compareGeometryAndGrid
protected boolean compareGeometryAndGrid(org.elasticsearch.geometry.Geometry geometry, long gridId, DataType gridType) -
processGeoPointDocValuesAndConstantGrid
protected void processGeoPointDocValuesAndConstantGrid(BooleanBlock.Builder builder, int position, LongBlock encodedPoint, long gridId, DataType gridType) -
processGeoPointDocValuesAndSourceGrid
protected void processGeoPointDocValuesAndSourceGrid(BooleanBlock.Builder builder, int position, LongBlock encodedPoint, LongBlock gridIds, DataType gridType) -
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
-