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 Summary
Constructors -
Method Summary
Modifier 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.inferenceConfig(InferenceConfig value) Contains the inference type and its options.Contains the inference type and its options.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.AbstractBuilder
description, if_, ignoreFailure, onFailure, onFailure, onFailure, tagMethods inherited from class co.elastic.clients.util.WithJsonObjectBuilderBase
withJsonMethods inherited from class co.elastic.clients.util.ObjectBuilderBase
_checkSingleUse, _listAdd, _listAddAll, _mapPut, _mapPutAll
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
modelId
Required - The ID or alias for the trained model, or the ID of the deployment.API name:
model_id -
targetField
Field added to incoming documents to contain results objects.API name:
target_field -
fieldMap
Maps 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. -
fieldMap
Maps 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. -
inferenceConfig
Contains the inference type and its options.API name:
inference_config -
inferenceConfig
public final InferenceProcessor.Builder inferenceConfig(Function<InferenceConfig.Builder, ObjectBuilder<InferenceConfig>> fn) Contains the inference type and its options.API name:
inference_config -
self
- Specified by:
selfin classProcessorBase.AbstractBuilder<InferenceProcessor.Builder>
-
build
Builds aInferenceProcessor.- Specified by:
buildin interfaceObjectBuilder<InferenceProcessor>- Throws:
NullPointerException- if some of the required fields are null.
-