Class SetProcessor
java.lang.Object
org.opensearch.client.opensearch.ingest.ProcessorBase
org.opensearch.client.opensearch.ingest.SetProcessor
- All Implemented Interfaces:
JsonpSerializable,PlainJsonSerializable,ProcessorVariant,ToCopyableBuilder<SetProcessor.Builder,SetProcessor>
@JsonpDeserializable
@Generated("org.opensearch.client.codegen.CodeGenerator")
public class SetProcessor
extends ProcessorBase
implements ProcessorVariant, ToCopyableBuilder<SetProcessor.Builder,SetProcessor>
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class org.opensearch.client.opensearch.ingest.ProcessorBase
ProcessorBase.AbstractBuilder<BuilderT extends ProcessorBase.AbstractBuilder<BuilderT>> -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final JsonpDeserializer<SetProcessor> Json deserializer forSetProcessor -
Method Summary
Modifier and TypeMethodDescriptionProcessorvariant kind.static SetProcessor.Builderbuilder()final StringcopyFrom()API name:copy_frombooleanfinal Stringfield()Required - API name:fieldinthashCode()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 voidCreate a new builderToCopyableBuilderthat is initialised with the current state of this object.final JsonDatavalue()The value to be set for the field.Methods inherited from class org.opensearch.client.opensearch.ingest.ProcessorBase
description, if_, ignoreFailure, onFailure, serialize, setupProcessorBaseDeserializer, tagMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.opensearch.client.json.PlainJsonSerializable
toJsonStringMethods inherited from interface org.opensearch.client.opensearch.ingest.ProcessorVariant
toProcessorMethods inherited from interface org.opensearch.client.util.ToCopyableBuilder
copy
-
Field Details
-
_DESERIALIZER
Json deserializer forSetProcessor
-
-
Method Details
-
of
-
_processorKind
Processorvariant kind.- Specified by:
_processorKindin interfaceProcessorVariant
-
copyFrom
API name:copy_from -
field
Required - 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
-
toBuilder
Description copied from interface:ToCopyableBuilderCreate a new builderToCopyableBuilderthat is initialised with the current state of this object.- Specified by:
toBuilderin interfaceToCopyableBuilder<SetProcessor.Builder,SetProcessor> - Returns:
- a new builder instance.
-
builder
-
setupSetProcessorDeserializer
-
hashCode
public int hashCode()- Overrides:
hashCodein classProcessorBase
-
equals
- Overrides:
equalsin classProcessorBase
-