Class AppendProcessor

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

@JsonpDeserializable public class AppendProcessor 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
    • field

      public final String field()
      Required - The field to be appended to. Supports template snippets.

      API name: field

    • value

      public final List<JsonData> value()
      The value to be appended. Supports template snippets. May specify only one of value or copy_from.

      API name: 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

    • copyFrom

      @Nullable public final String copyFrom()
      The origin field which will be appended to field, cannot set value simultaneously.

      API name: copy_from

    • allowDuplicates

      @Nullable public final Boolean allowDuplicates()
      If false, the processor does not append values already present in the field.

      API name: allow_duplicates

    • ignoreEmptyValues

      @Nullable public final Boolean ignoreEmptyValues()
      If true, the processor will skip empty values from the source (e.g. empty strings, and null values), rather than appending them to the field.

      API name: ignore_empty_values

    • serializeInternal

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

      public AppendProcessor.Builder rebuild()
      Returns:
      New AppendProcessor.Builder initialized with field values of this instance
    • setupAppendProcessorDeserializer

      protected static void setupAppendProcessorDeserializer(ObjectDeserializer<AppendProcessor.Builder> op)