Class RegressionInferenceOptions.Builder
java.lang.Object
co.elastic.clients.util.ObjectBuilderBase
co.elastic.clients.util.WithJsonObjectBuilderBase<RegressionInferenceOptions.Builder>
co.elastic.clients.elasticsearch.ml.RegressionInferenceOptions.Builder
- All Implemented Interfaces:
- WithJson<RegressionInferenceOptions.Builder>,- ObjectBuilder<RegressionInferenceOptions>
- Enclosing class:
- RegressionInferenceOptions
public static class RegressionInferenceOptions.Builder
extends WithJsonObjectBuilderBase<RegressionInferenceOptions.Builder>
implements ObjectBuilder<RegressionInferenceOptions>
Builder for 
RegressionInferenceOptions.- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionbuild()Builds aRegressionInferenceOptions.Specifies the maximum number of feature importance values per document.resultsField(String value) The field that is added to incoming documents to contain the inference prediction.protected RegressionInferenceOptions.Builderself()Methods inherited from class co.elastic.clients.util.WithJsonObjectBuilderBasewithJsonMethods inherited from class co.elastic.clients.util.ObjectBuilderBase_checkSingleUse, _listAdd, _listAddAll, _mapPut, _mapPutAll
- 
Constructor Details- 
Builderpublic Builder()
 
- 
- 
Method Details- 
resultsFieldThe field that is added to incoming documents to contain the inference prediction. Defaults to predicted_value.API name: results_field
- 
numTopFeatureImportanceValuespublic final RegressionInferenceOptions.Builder numTopFeatureImportanceValues(@Nullable Integer value) Specifies the maximum number of feature importance values per document.API name: num_top_feature_importance_values
- 
self- Specified by:
- selfin class- WithJsonObjectBuilderBase<RegressionInferenceOptions.Builder>
 
- 
buildBuilds aRegressionInferenceOptions.- Specified by:
- buildin interface- ObjectBuilder<RegressionInferenceOptions>
- Throws:
- NullPointerException- if some of the required fields are null.
 
 
-