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:
CopyableBuilder<GeoShapeQuery.Builder,,GeoShapeQuery> MutableBuilder<GeoShapeQuery.Builder,,GeoShapeQuery> ObjectBuilder<GeoShapeQuery>
- Enclosing class:
GeoShapeQuery
public static class GeoShapeQuery.Builder
extends QueryBase.AbstractBuilder<GeoShapeQuery.Builder>
implements CopyableBuilder<GeoShapeQuery.Builder,GeoShapeQuery>
Builder for
GeoShapeQuery.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds aGeoShapeQuery.copy()Create a new builderCopyableBuilderthat is a copy of this one.final GeoShapeQuery.BuilderRequired -final GeoShapeQuery.BuilderignoreUnmapped(Boolean value) API name:ignore_unmappedprotected GeoShapeQuery.Builderself()final GeoShapeQuery.BuilderRequired -final GeoShapeQuery.Buildershape(GeoShapeQueryField value) Required -Methods inherited from class org.opensearch.client.opensearch._types.query_dsl.QueryBase.AbstractBuilder
boost, queryNameMethods inherited from class org.opensearch.client.util.ObjectBuilderBase
_checkSingleUse, _listAdd, _listAddAll, _listCopy, _mapCopy, _mapPut, _mapPutAllMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.opensearch.client.util.MutableBuilder
applyMutation
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
copy
Description copied from interface:CopyableBuilderCreate a new builderCopyableBuilderthat is a copy of this one.- Specified by:
copyin interfaceCopyableBuilder<GeoShapeQuery.Builder,GeoShapeQuery> - Returns:
- a new builder instance.
-
self
- Specified by:
selfin classQueryBase.AbstractBuilder<GeoShapeQuery.Builder>
-
field
Required - -
ignoreUnmapped
API name:ignore_unmapped -
shape
Required - -
shape
@Nonnull public final GeoShapeQuery.Builder shape(Function<GeoShapeQueryField.Builder, ObjectBuilder<GeoShapeQueryField>> fn) Required - -
build
Builds aGeoShapeQuery.- Specified by:
buildin interfaceObjectBuilder<GeoShapeQuery>- Throws:
NullPointerException- if some of the required fields are null.
-