Class GeoBoundingBoxQuery.Builder
java.lang.Object
org.opensearch.client.util.ObjectBuilderBase
org.opensearch.client.opensearch._types.query_dsl.QueryBase.AbstractBuilder<GeoBoundingBoxQuery.Builder>
org.opensearch.client.opensearch._types.query_dsl.GeoBoundingBoxQuery.Builder
- All Implemented Interfaces:
CopyableBuilder<GeoBoundingBoxQuery.Builder,,GeoBoundingBoxQuery> MutableBuilder<GeoBoundingBoxQuery.Builder,,GeoBoundingBoxQuery> ObjectBuilder<GeoBoundingBoxQuery>
- Enclosing class:
GeoBoundingBoxQuery
public static class GeoBoundingBoxQuery.Builder
extends QueryBase.AbstractBuilder<GeoBoundingBoxQuery.Builder>
implements CopyableBuilder<GeoBoundingBoxQuery.Builder,GeoBoundingBoxQuery>
Builder for
GeoBoundingBoxQuery.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionRequired -boundingBox(GeoBounds value) Required -build()Builds aGeoBoundingBoxQuery.copy()Create a new builderCopyableBuilderthat is a copy of this one.Required -ignoreUnmapped(Boolean value) API name:ignore_unmappedprotected GeoBoundingBoxQuery.Builderself()type(GeoExecution value) API name:typeAPI name:validation_methodMethods 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<GeoBoundingBoxQuery.Builder,GeoBoundingBoxQuery> - Returns:
- a new builder instance.
-
self
- Specified by:
selfin classQueryBase.AbstractBuilder<GeoBoundingBoxQuery.Builder>
-
boundingBox
Required -A geo-bounding box. It can be represented in the following ways:
- As 4 top/bottom/left/right coordinates.
- As 2 top_left/bottom_right points.
- As 2 top_right/bottom_left points.
- As a Well Known Text (WKT) bounding box.
-
boundingBox
@Nonnull public final GeoBoundingBoxQuery.Builder boundingBox(Function<GeoBounds.Builder, ObjectBuilder<GeoBounds>> fn) Required -A geo-bounding box. It can be represented in the following ways:
- As 4 top/bottom/left/right coordinates.
- As 2 top_left/bottom_right points.
- As 2 top_right/bottom_left points.
- As a Well Known Text (WKT) bounding box.
-
field
Required - -
ignoreUnmapped
API name:ignore_unmapped -
type
API name:type -
validationMethod
@Nonnull public final GeoBoundingBoxQuery.Builder validationMethod(@Nullable GeoValidationMethod value) API name:validation_method -
build
Builds aGeoBoundingBoxQuery.- Specified by:
buildin interfaceObjectBuilder<GeoBoundingBoxQuery>- Throws:
NullPointerException- if some of the required fields are null.
-