Class SetProcessor

java.lang.Object
co.elastic.clients.elasticsearch.ingest.ProcessorBase
co.elastic.clients.elasticsearch.ingest.SetProcessor
All Implemented Interfaces:
ProcessorVariant, JsonpSerializable

@JsonpDeserializable public class SetProcessor extends ProcessorBase implements ProcessorVariant
See Also:
  • Field Details

  • Method Details

    • of

    • _processorKind

      public Processor.Kind _processorKind()
      Processor variant kind.
      Specified by:
      _processorKind in interface ProcessorVariant
    • copyFrom

      @Nullable public final String copyFrom()
      The origin field which will be copied to field, cannot set value simultaneously. Supported data types are boolean, number, array, object, string, date, etc.

      API name: copy_from

    • field

      public final String field()
      Required - The field to insert, upsert, or update. Supports template snippets.

      API name: field

    • ignoreEmptyValue

      @Nullable public final Boolean ignoreEmptyValue()
      If true and value is a template snippet that evaluates to null or the empty string, the processor quietly exits without modifying the document.

      API name: ignore_empty_value

    • mediaType

      @Nullable public final String mediaType()
      The media type for encoding value. Applies only when value is a template snippet. Must be one of application/json, text/plain, or application/x-www-form-urlencoded.

      API name: media_type

    • override

      @Nullable public final Boolean override()
      If true processor will update fields with pre-existing non-null-valued field. When set to false, such fields will not be touched.

      API name: override

    • value

      @Nullable public final JsonData value()
      The value to be set for the field. Supports template snippets. May specify only one of value or copy_from.

      API name: value

    • serializeInternal

      protected void serializeInternal(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper)
      Overrides:
      serializeInternal in class ProcessorBase
    • setupSetProcessorDeserializer

      protected static void setupSetProcessorDeserializer(ObjectDeserializer<SetProcessor.Builder> op)