Class SpanGapQuery.Builder
java.lang.Object
org.opensearch.client.util.ObjectBuilderBase
org.opensearch.client.opensearch._types.query_dsl.SpanGapQuery.Builder
- All Implemented Interfaces:
CopyableBuilder<SpanGapQuery.Builder,,SpanGapQuery> MutableBuilder<SpanGapQuery.Builder,,SpanGapQuery> ObjectBuilder<SpanGapQuery>
- Enclosing class:
SpanGapQuery
public static class SpanGapQuery.Builder
extends ObjectBuilderBase
implements CopyableBuilder<SpanGapQuery.Builder,SpanGapQuery>
Builder for
SpanGapQuery.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds aSpanGapQuery.copy()Create a new builderCopyableBuilderthat is a copy of this one.final SpanGapQuery.BuilderRequired - The path to a field or an array of paths.final SpanGapQuery.BuilderspanWidth(int value) Required -Methods 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<SpanGapQuery.Builder,SpanGapQuery> - Returns:
- a new builder instance.
-
field
Required - The path to a field or an array of paths. Some APIs support wildcards in the path, which allows you to select multiple fields. -
spanWidth
Required - -
build
Builds aSpanGapQuery.- Specified by:
buildin interfaceObjectBuilder<SpanGapQuery>- Throws:
NullPointerException- if some of the required fields are null.
-