Class InferenceProcessor.Builder
java.lang.Object
co.elastic.clients.util.ObjectBuilderBase
co.elastic.clients.util.WithJsonObjectBuilderBase<BuilderT>
co.elastic.clients.elasticsearch.ingest.ProcessorBase.AbstractBuilder<InferenceProcessor.Builder>
co.elastic.clients.elasticsearch.ingest.InferenceProcessor.Builder
- All Implemented Interfaces:
- WithJson<InferenceProcessor.Builder>,- ObjectBuilder<InferenceProcessor>
- Enclosing class:
- InferenceProcessor
public static class InferenceProcessor.Builder
extends ProcessorBase.AbstractBuilder<InferenceProcessor.Builder>
implements ObjectBuilder<InferenceProcessor>
Builder for 
InferenceProcessor.- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionbuild()Builds aInferenceProcessor.Maps the document field names to the known field names of the model.Maps the document field names to the known field names of the model.ignoreMissing(Boolean value) If true and any of the input fields defined in input_ouput are missing then those missing fields are quietly ignored, otherwise a missing field causes a failure.inferenceConfig(InferenceConfig value) Contains the inference type and its options.Contains the inference type and its options.Contains the inference type and its options.inputOutput(InputConfig value, InputConfig... values) Input fields for inference and output (destination) fields for the inference results.Input fields for inference and output (destination) fields for the inference results.inputOutput(List<InputConfig> list) Input fields for inference and output (destination) fields for the inference results.Required - The ID or alias for the trained model, or the ID of the deployment.protected InferenceProcessor.Builderself()targetField(String value) Field added to incoming documents to contain results objects.Methods inherited from class co.elastic.clients.elasticsearch.ingest.ProcessorBase.AbstractBuilderdescription, if_, if_, ignoreFailure, onFailure, onFailure, onFailure, onFailure, tagMethods 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- 
modelIdRequired - The ID or alias for the trained model, or the ID of the deployment.API name: model_id
- 
targetFieldField added to incoming documents to contain results objects.API name: target_field
- 
fieldMapMaps the document field names to the known field names of the model. This mapping takes precedence over any default mappings provided in the model configuration.API name: field_mapAdds all entries of maptofieldMap.
- 
fieldMapMaps the document field names to the known field names of the model. This mapping takes precedence over any default mappings provided in the model configuration.API name: field_mapAdds an entry to fieldMap.
- 
inferenceConfigContains the inference type and its options.API name: inference_config
- 
inferenceConfigpublic final InferenceProcessor.Builder inferenceConfig(Function<InferenceConfig.Builder, ObjectBuilder<InferenceConfig>> fn) Contains the inference type and its options.API name: inference_config
- 
inferenceConfigContains the inference type and its options.API name: inference_config
- 
inputOutputInput fields for inference and output (destination) fields for the inference results. This option is incompatible with the target_field and field_map options.API name: input_outputAdds all elements of listtoinputOutput.
- 
inputOutputInput fields for inference and output (destination) fields for the inference results. This option is incompatible with the target_field and field_map options.API name: input_outputAdds one or more values to inputOutput.
- 
inputOutputpublic final InferenceProcessor.Builder inputOutput(Function<InputConfig.Builder, ObjectBuilder<InputConfig>> fn) Input fields for inference and output (destination) fields for the inference results. This option is incompatible with the target_field and field_map options.API name: input_outputAdds a value to inputOutputusing a builder lambda.
- 
ignoreMissingIf true and any of the input fields defined in input_ouput are missing then those missing fields are quietly ignored, otherwise a missing field causes a failure. Only applies when using input_output configurations to explicitly list the input fields.API name: ignore_missing
- 
self- Specified by:
- selfin class- ProcessorBase.AbstractBuilder<InferenceProcessor.Builder>
 
- 
buildBuilds aInferenceProcessor.- Specified by:
- buildin interface- ObjectBuilder<InferenceProcessor>
- Throws:
- NullPointerException- if some of the required fields are null.
 
 
-