Class GeoShapeQuery.Builder
- java.lang.Object
-
- org.opensearch.client.util.ObjectBuilderBase
-
- org.opensearch.client.opensearch._types.query_dsl.QueryBase.AbstractBuilder<GeoShapeQuery.Builder>
-
- org.opensearch.client.opensearch._types.query_dsl.GeoShapeQuery.Builder
-
- All Implemented Interfaces:
ObjectBuilder<GeoShapeQuery>
- Enclosing class:
- GeoShapeQuery
public static class GeoShapeQuery.Builder extends QueryBase.AbstractBuilder<GeoShapeQuery.Builder> implements ObjectBuilder<GeoShapeQuery>
Builder forGeoShapeQuery.
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description GeoShapeQuerybuild()Builds aGeoShapeQuery.GeoShapeQuery.Builderfield(java.lang.String value)Required -GeoShapeQuery.BuilderignoreUnmapped(java.lang.Boolean value)API name:ignore_unmappedprotected GeoShapeQuery.Builderself()GeoShapeQuery.Buildershape(java.util.function.Function<GeoShapeFieldQuery.Builder,ObjectBuilder<GeoShapeFieldQuery>> fn)Required -GeoShapeQuery.Buildershape(GeoShapeFieldQuery value)Required --
Methods inherited from class org.opensearch.client.opensearch._types.query_dsl.QueryBase.AbstractBuilder
boost, queryName
-
Methods inherited from class org.opensearch.client.util.ObjectBuilderBase
_checkSingleUse, _listAdd, _listAddAll, _mapPut, _mapPutAll
-
-
-
-
Method Detail
-
field
public final GeoShapeQuery.Builder field(java.lang.String value)
Required -
-
shape
public final GeoShapeQuery.Builder shape(GeoShapeFieldQuery value)
Required -
-
shape
public final GeoShapeQuery.Builder shape(java.util.function.Function<GeoShapeFieldQuery.Builder,ObjectBuilder<GeoShapeFieldQuery>> fn)
Required -
-
ignoreUnmapped
public final GeoShapeQuery.Builder ignoreUnmapped(@Nullable java.lang.Boolean value)
API name:ignore_unmapped
-
self
protected GeoShapeQuery.Builder self()
- Specified by:
selfin classQueryBase.AbstractBuilder<GeoShapeQuery.Builder>
-
build
public GeoShapeQuery build()
Builds aGeoShapeQuery.- Specified by:
buildin interfaceObjectBuilder<GeoShapeQuery>- Throws:
java.lang.NullPointerException- if some of the required fields are null.
-
-