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 ClassesNested classes/interfaces inherited from class co.elastic.clients.elasticsearch.ingest.ProcessorBase
ProcessorBase.AbstractBuilder<BuilderT extends ProcessorBase.AbstractBuilder<BuilderT>> -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final JsonpDeserializer<SetProcessor>Json deserializer forSetProcessor -
Method Summary
Modifier and TypeMethodDescriptionProcessor variant kind.final StringcopyFrom()The origin field which will be copied tofield, cannot setvaluesimultaneously.final Stringfield()Required - The field to insert, upsert, or update.final BooleanIftrueandvalueis a template snippet that evaluates tonullor the empty string, the processor quietly exits without modifying the document.final StringThe media type for encodingvalue.static SetProcessorfinal Booleanoverride()Iftrueprocessor will update fields with pre-existing non-null-valued field.protected voidserializeInternal(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper) protected static voidfinal JsonDatavalue()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, toStringMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods 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:
_processorKindin interfaceProcessorVariant
-
copyFrom
The origin field which will be copied tofield, cannot setvaluesimultaneously. 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
Iftrueandvalueis a template snippet that evaluates tonullor 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
Iftrueprocessor 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 ofvalueorcopy_from.API name:
value -
serializeInternal
- Overrides:
serializeInternalin classProcessorBase
-
setupSetProcessorDeserializer
-