Class SpatialRelatesQuery.ShapeQueryBuilder
java.lang.Object
org.elasticsearch.xpack.esql.querydsl.query.SpatialRelatesQuery.ShapeQueryBuilder
- All Implemented Interfaces:
NamedWriteable,VersionedNamedWriteable,Writeable,QueryBuilder,Rewriteable<QueryBuilder>,org.elasticsearch.xcontent.ToXContent,org.elasticsearch.xcontent.ToXContentObject
- Enclosing class:
SpatialRelatesQuery
This class is a minimal implementation of the QueryBuilder interface.
We only need the toQuery method, but ESQL makes extensive use of QueryBuilder and trimming that interface down for ESQL only would
be a large undertaking.
Note that this class is only public for testing in PhysicalPlanOptimizerTests.
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.elasticsearch.xcontent.ToXContent
org.elasticsearch.xcontent.ToXContent.DelegatingMapParams, org.elasticsearch.xcontent.ToXContent.MapParams, org.elasticsearch.xcontent.ToXContent.ParamsNested classes/interfaces inherited from interface org.elasticsearch.common.io.stream.Writeable
Writeable.Reader<V>, Writeable.Writer<V> -
Field Summary
Fields inherited from interface org.elasticsearch.index.query.Rewriteable
MAX_REWRITE_ROUNDSFields inherited from interface org.elasticsearch.xcontent.ToXContent
EMPTY, EMPTY_PARAMS -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfloatboost()boost(float boost) protected voiddoToXContent(String queryName, org.elasticsearch.xcontent.XContentBuilder builder, org.elasticsearch.xcontent.ToXContent.Params params) Public for testinggetName()relation()Public for testingorg.elasticsearch.geometry.Geometryshape()Public for testingorg.apache.lucene.search.QuerytoQuery(SearchExecutionContext context) toString()voidwriteTo(StreamOutput out) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.elasticsearch.index.query.QueryBuilder
rewriteMethods inherited from interface org.elasticsearch.xcontent.ToXContent
toXContentMethods inherited from interface org.elasticsearch.xcontent.ToXContentObject
isFragmentMethods inherited from interface org.elasticsearch.common.io.stream.VersionedNamedWriteable
getWriteableName, supportsVersion
-
Constructor Details
-
ShapeQueryBuilder
public ShapeQueryBuilder()
-
-
Method Details
-
doToXContent
protected void doToXContent(String queryName, org.elasticsearch.xcontent.XContentBuilder builder, org.elasticsearch.xcontent.ToXContent.Params params) throws IOException - Throws:
IOException
-
getMinimalSupportedVersion
- Specified by:
getMinimalSupportedVersionin interfaceVersionedNamedWriteable
-
writeTo
- Specified by:
writeToin interfaceWriteable- Throws:
IOException
-
toQuery
- Specified by:
toQueryin interfaceQueryBuilder- Throws:
IOException
-
queryName
- Specified by:
queryNamein interfaceQueryBuilder
-
queryName
- Specified by:
queryNamein interfaceQueryBuilder
-
boost
public float boost()- Specified by:
boostin interfaceQueryBuilder
-
boost
- Specified by:
boostin interfaceQueryBuilder
-
getName
- Specified by:
getNamein interfaceQueryBuilder
-
fieldName
Public for testing -
relation
Public for testing -
shape
public org.elasticsearch.geometry.Geometry shape()Public for testing -
toString
-