Class RescoreContext.Builder
java.lang.Object
org.opensearch.client.util.ObjectBuilderBase
org.opensearch.client.opensearch._types.query_dsl.RescoreContext.Builder
- All Implemented Interfaces:
CopyableBuilder<RescoreContext.Builder,,RescoreContext> MutableBuilder<RescoreContext.Builder,,RescoreContext> ObjectBuilder<RescoreContext>
- Enclosing class:
RescoreContext
public static class RescoreContext.Builder
extends ObjectBuilderBase
implements CopyableBuilder<RescoreContext.Builder,RescoreContext>
Builder for
RescoreContext.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds aRescoreContext.copy()Create a new builderCopyableBuilderthat is a copy of this one.final RescoreContext.BuilderoversampleFactor(Float value) API name:oversample_factorMethods 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<RescoreContext.Builder,RescoreContext> - Returns:
- a new builder instance.
-
oversampleFactor
API name:oversample_factor -
build
Builds aRescoreContext.- Specified by:
buildin interfaceObjectBuilder<RescoreContext>- Throws:
NullPointerException- if some of the required fields are null.
-