Package org.elasticsearch.search.geo
Interface SpatialQueryBuilders<T extends AbstractGeometryQueryBuilder<T>>
- All Known Implementing Classes:
SpatialQueryBuilders.Geo
public interface SpatialQueryBuilders<T extends AbstractGeometryQueryBuilder<T>>
This interface allows tests to abstract away which exact QueryBuilder is used in the tests.
We have generalized the Geo-specific tests in test.framework to be re-used by Cartesian tests
in the xpack-spatial module. This requires implmenting this interface for other QueryBuilders,
for example ShapeQueryBuilder in xpack for Cartesian.
-
Nested Class Summary
-
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptiondisjointQuery
(String name, String indexedShapeId) disjointQuery
(String name, org.elasticsearch.geometry.Geometry shape) intersectionQuery
(String name, String indexedShapeId) intersectionQuery
(String name, org.elasticsearch.geometry.Geometry shape) shapeQuery
(String name, String indexedShapeId) shapeQuery
(String name, org.elasticsearch.geometry.Geometry shape) withinQuery
(String name, String indexedShapeId) withinQuery
(String name, org.elasticsearch.geometry.Geometry shape)
-
Field Details
-
GEO
-
-
Method Details
-
shapeQuery
-
shapeQuery
-
intersectionQuery
AbstractGeometryQueryBuilder<T> intersectionQuery(String name, org.elasticsearch.geometry.Geometry shape) throws IOException - Throws:
IOException
-
intersectionQuery
-
withinQuery
AbstractGeometryQueryBuilder<T> withinQuery(String name, org.elasticsearch.geometry.Geometry shape) throws IOException - Throws:
IOException
-
withinQuery
-
disjointQuery
AbstractGeometryQueryBuilder<T> disjointQuery(String name, org.elasticsearch.geometry.Geometry shape) throws IOException - Throws:
IOException
-
disjointQuery
-