Class RankFeatureFunctionSigmoid.Builder
java.lang.Object
org.opensearch.client.util.ObjectBuilderBase
org.opensearch.client.opensearch._types.query_dsl.RankFeatureFunction.AbstractBuilder<RankFeatureFunctionSigmoid.Builder>
org.opensearch.client.opensearch._types.query_dsl.RankFeatureFunctionSigmoid.Builder
- All Implemented Interfaces:
CopyableBuilder<RankFeatureFunctionSigmoid.Builder,,RankFeatureFunctionSigmoid> MutableBuilder<RankFeatureFunctionSigmoid.Builder,,RankFeatureFunctionSigmoid> ObjectBuilder<RankFeatureFunctionSigmoid>
- Enclosing class:
RankFeatureFunctionSigmoid
public static class RankFeatureFunctionSigmoid.Builder
extends RankFeatureFunction.AbstractBuilder<RankFeatureFunctionSigmoid.Builder>
implements CopyableBuilder<RankFeatureFunctionSigmoid.Builder,RankFeatureFunctionSigmoid>
Builder for
RankFeatureFunctionSigmoid.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds aRankFeatureFunctionSigmoid.copy()Create a new builderCopyableBuilderthat is a copy of this one.exponent(float value) Required - Configurable Exponent.pivot(float value) Required - Configurable pivot value so that the result will be less than 0.5.protected RankFeatureFunctionSigmoid.Builderself()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<RankFeatureFunctionSigmoid.Builder,RankFeatureFunctionSigmoid> - Returns:
- a new builder instance.
-
self
- Specified by:
selfin classRankFeatureFunction.AbstractBuilder<RankFeatureFunctionSigmoid.Builder>
-
exponent
Required - Configurable Exponent.API name:
exponent -
pivot
Required - Configurable pivot value so that the result will be less than 0.5.API name:
pivot -
build
Builds aRankFeatureFunctionSigmoid.- Specified by:
buildin interfaceObjectBuilder<RankFeatureFunctionSigmoid>- Throws:
NullPointerException- if some of the required fields are null.
-