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
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds aConvertProcessor
.final ConvertProcessor.Builder
Required - The field whose value is to be converted.final ConvertProcessor.Builder
ignoreMissing
(Boolean value) Iftrue
andfield
does not exist or isnull
, the processor quietly exits without modifying the document.protected ConvertProcessor.Builder
self()
final ConvertProcessor.Builder
targetField
(String value) The field to assign the converted value to.final ConvertProcessor.Builder
type
(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, tag
Methods inherited from class co.elastic.clients.util.WithJsonObjectBuilderBase
withJson
Methods 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
Iftrue
andfield
does 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, thefield
is updated in-place.API name:
target_field
-
type
Required - The type to convert the existing value to.API name:
type
-
self
- Specified by:
self
in classProcessorBase.AbstractBuilder<ConvertProcessor.Builder>
-
build
Builds aConvertProcessor
.- Specified by:
build
in interfaceObjectBuilder<ConvertProcessor>
- Throws:
NullPointerException
- if some of the required fields are null.
-