Class ConvertProcessor.Builder
java.lang.Object
co.elastic.clients.util.ObjectBuilderBase
co.elastic.clients.util.WithJsonObjectBuilderBase<BuilderT>
co.elastic.clients.elasticsearch.ingest.ProcessorBase.AbstractBuilder<ConvertProcessor.Builder>
co.elastic.clients.elasticsearch.ingest.ConvertProcessor.Builder
- All Implemented Interfaces:
WithJson<ConvertProcessor.Builder>,ObjectBuilder<ConvertProcessor>
- Enclosing class:
- ConvertProcessor
public static class ConvertProcessor.Builder
extends ProcessorBase.AbstractBuilder<ConvertProcessor.Builder>
implements ObjectBuilder<ConvertProcessor>
Builder for
ConvertProcessor.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds aConvertProcessor.final ConvertProcessor.BuilderRequired - The field whose value is to be converted.final ConvertProcessor.BuilderignoreMissing(Boolean value) Iftrueandfielddoes not exist or isnull, the processor quietly exits without modifying the document.protected ConvertProcessor.Builderself()final ConvertProcessor.BuildertargetField(String value) The field to assign the converted value to.final ConvertProcessor.Buildertype(ConvertType value) Required - The type to convert the existing value to.Methods inherited from class co.elastic.clients.elasticsearch.ingest.ProcessorBase.AbstractBuilder
description, if_, ignoreFailure, onFailure, 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
-
field
Required - The field whose value is to be converted.API name:
field -
ignoreMissing
Iftrueandfielddoes not exist or isnull, the processor quietly exits without modifying the document.API name:
ignore_missing -
targetField
The field to assign the converted value to. By default, thefieldis updated in-place.API name:
target_field -
type
Required - The type to convert the existing value to.API name:
type -
self
- Specified by:
selfin classProcessorBase.AbstractBuilder<ConvertProcessor.Builder>
-
build
Builds aConvertProcessor.- Specified by:
buildin interfaceObjectBuilder<ConvertProcessor>- Throws:
NullPointerException- if some of the required fields are null.
-