Class GoogleNormalizedDistanceHeuristic.Builder
java.lang.Object
org.opensearch.client.util.ObjectBuilderBase
org.opensearch.client.opensearch._types.aggregations.GoogleNormalizedDistanceHeuristic.Builder
- All Implemented Interfaces:
CopyableBuilder<GoogleNormalizedDistanceHeuristic.Builder,,GoogleNormalizedDistanceHeuristic> MutableBuilder<GoogleNormalizedDistanceHeuristic.Builder,,GoogleNormalizedDistanceHeuristic> ObjectBuilder<GoogleNormalizedDistanceHeuristic>
- Enclosing class:
GoogleNormalizedDistanceHeuristic
public static class GoogleNormalizedDistanceHeuristic.Builder
extends ObjectBuilderBase
implements CopyableBuilder<GoogleNormalizedDistanceHeuristic.Builder,GoogleNormalizedDistanceHeuristic>
Builder for
GoogleNormalizedDistanceHeuristic.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbackgroundIsSuperset(Boolean value) Set tofalseif you defined a custom background filter that represents a different set of documents that you want to compare to.build()Builds aGoogleNormalizedDistanceHeuristic.copy()Create a new builderCopyableBuilderthat is a copy of this one.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<GoogleNormalizedDistanceHeuristic.Builder,GoogleNormalizedDistanceHeuristic> - Returns:
- a new builder instance.
-
backgroundIsSuperset
@Nonnull public final GoogleNormalizedDistanceHeuristic.Builder backgroundIsSuperset(@Nullable Boolean value) Set tofalseif you defined a custom background filter that represents a different set of documents that you want to compare to.API name:
background_is_superset -
build
Builds aGoogleNormalizedDistanceHeuristic.- Specified by:
buildin interfaceObjectBuilder<GoogleNormalizedDistanceHeuristic>- Throws:
NullPointerException- if some of the required fields are null.
-