Class RegressionInferenceOptions.Builder
- java.lang.Object
-
- org.opensearch.client.util.ObjectBuilderBase
-
- org.opensearch.client.opensearch._types.aggregations.RegressionInferenceOptions.Builder
-
- All Implemented Interfaces:
ObjectBuilder<RegressionInferenceOptions>
- Enclosing class:
- RegressionInferenceOptions
public static class RegressionInferenceOptions.Builder extends ObjectBuilderBase implements ObjectBuilder<RegressionInferenceOptions>
Builder forRegressionInferenceOptions.
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description RegressionInferenceOptionsbuild()Builds aRegressionInferenceOptions.RegressionInferenceOptions.BuildernumTopFeatureImportanceValues(java.lang.Integer value)Specifies the maximum number of feature importance values per document.RegressionInferenceOptions.BuilderresultsField(java.lang.String value)The field that is added to incoming documents to contain the inference prediction.-
Methods inherited from class org.opensearch.client.util.ObjectBuilderBase
_checkSingleUse, _listAdd, _listAddAll, _mapPut, _mapPutAll
-
-
-
-
Method Detail
-
resultsField
public final RegressionInferenceOptions.Builder resultsField(@Nullable java.lang.String value)
The field that is added to incoming documents to contain the inference prediction. Defaults to predicted_value.API name:
results_field
-
numTopFeatureImportanceValues
public final RegressionInferenceOptions.Builder numTopFeatureImportanceValues(@Nullable java.lang.Integer value)
Specifies the maximum number of feature importance values per document. By default, it is zero and no feature importance calculation occurs.API name:
num_top_feature_importance_values
-
build
public RegressionInferenceOptions build()
Builds aRegressionInferenceOptions.- Specified by:
buildin interfaceObjectBuilder<RegressionInferenceOptions>- Throws:
java.lang.NullPointerException- if some of the required fields are null.
-
-