Class GeoDistanceQuery.Builder
java.lang.Object
org.opensearch.client.opensearch._types.query_dsl.QueryBase.AbstractBuilder<GeoDistanceQuery.Builder>
org.opensearch.client.opensearch._types.query_dsl.GeoDistanceQuery.Builder
- All Implemented Interfaces:
ObjectBuilder<GeoDistanceQuery>
- Enclosing class:
- GeoDistanceQuery
public static class GeoDistanceQuery.Builder extends QueryBase.AbstractBuilder<GeoDistanceQuery.Builder> implements ObjectBuilder<GeoDistanceQuery>
Builder for
GeoDistanceQuery.-
Nested Class Summary
Nested classes/interfaces inherited from interface org.opensearch.client.util.ObjectBuilder
ObjectBuilder.Constant<V> -
Constructor Summary
Constructors Constructor Description Builder() -
Method Summary
Modifier and Type Method Description GeoDistanceQuerybuild()Builds aGeoDistanceQuery.GeoDistanceQuery.Builderdistance(java.lang.String value)API name:distanceGeoDistanceQuery.BuilderdistanceType(jakarta.json.JsonValue value)API name:distance_typeprotected GeoDistanceQuery.Builderself()GeoDistanceQuery.BuildervalidationMethod(jakarta.json.JsonValue value)API name:validation_methodMethods inherited from class org.opensearch.client.opensearch._types.query_dsl.QueryBase.AbstractBuilder
boost, name
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
distance
API name:distance -
distanceType
API name:distance_type -
validationMethod
API name:validation_method -
self
- Specified by:
selfin classQueryBase.AbstractBuilder<GeoDistanceQuery.Builder>
-
build
Builds aGeoDistanceQuery.- Specified by:
buildin interfaceObjectBuilder<GeoDistanceQuery>- Throws:
java.lang.NullPointerException- if some of the required fields are null.
-