Class SetProcessor
java.lang.Object
co.elastic.clients.elasticsearch.ingest.ProcessorBase
co.elastic.clients.elasticsearch.ingest.SetProcessor
- All Implemented Interfaces:
ProcessorVariant
,JsonpSerializable
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class co.elastic.clients.elasticsearch.ingest.ProcessorBase
ProcessorBase.AbstractBuilder<BuilderT extends ProcessorBase.AbstractBuilder<BuilderT>>
-
Field Summary
Modifier and TypeFieldDescriptionstatic final JsonpDeserializer<SetProcessor>
Json deserializer forSetProcessor
-
Method Summary
Modifier and TypeMethodDescriptionProcessor variant kind.final String
copyFrom()
The origin field which will be copied tofield
, cannot setvalue
simultaneously.final String
field()
Required - The field to insert, upsert, or update.final Boolean
Iftrue
andvalue
is a template snippet that evaluates tonull
or the empty string, the processor quietly exits without modifying the document.final String
The media type for encodingvalue
.static SetProcessor
final Boolean
override()
Iftrue
processor will update fields with pre-existing non-null-valued field.protected void
serializeInternal
(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper) protected static void
final JsonData
value()
The value to be set for the field.Methods inherited from class co.elastic.clients.elasticsearch.ingest.ProcessorBase
description, if_, ignoreFailure, onFailure, serialize, setupProcessorBaseDeserializer, tag, toString
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface co.elastic.clients.elasticsearch.ingest.ProcessorVariant
_toProcessor
-
Field Details
-
_DESERIALIZER
Json deserializer forSetProcessor
-
-
Method Details
-
of
-
_processorKind
Processor variant kind.- Specified by:
_processorKind
in interfaceProcessorVariant
-
copyFrom
The origin field which will be copied tofield
, cannot setvalue
simultaneously. Supported data types areboolean
,number
,array
,object
,string
,date
, etc.API name:
copy_from
-
field
Required - The field to insert, upsert, or update. Supports template snippets.API name:
field
-
ignoreEmptyValue
Iftrue
andvalue
is a template snippet that evaluates tonull
or the empty string, the processor quietly exits without modifying the document.API name:
ignore_empty_value
-
mediaType
The media type for encodingvalue
. Applies only when value is a template snippet. Must be one ofapplication/json
,text/plain
, orapplication/x-www-form-urlencoded
.API name:
media_type
-
override
Iftrue
processor will update fields with pre-existing non-null-valued field. When set tofalse
, such fields will not be touched.API name:
override
-
value
The value to be set for the field. Supports template snippets. May specify only one ofvalue
orcopy_from
.API name:
value
-
serializeInternal
- Overrides:
serializeInternal
in classProcessorBase
-
setupSetProcessorDeserializer
-