Class KeyValueProcessor

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

@JsonpDeserializable public class KeyValueProcessor 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
    • excludeKeys

      public final List<String> excludeKeys()
      List of keys to exclude from document.

      API name: exclude_keys

    • field

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

      API name: field

    • fieldSplit

      public final String fieldSplit()
      Required - Regex pattern to use for splitting key-value pairs.

      API name: field_split

    • ignoreMissing

      @Nullable public final Boolean ignoreMissing()
      If true and field does not exist or is null, the processor quietly exits without modifying the document.

      API name: ignore_missing

    • includeKeys

      public final List<String> includeKeys()
      List of keys to filter and insert into document. Defaults to including all keys.

      API name: include_keys

    • prefix

      @Nullable public final String prefix()
      Prefix to be added to extracted keys.

      API name: prefix

    • stripBrackets

      @Nullable public final Boolean stripBrackets()
      If true. strip brackets (), <>, [] as well as quotes ' and " from extracted values.

      API name: strip_brackets

    • targetField

      @Nullable public final String targetField()
      The field to insert the extracted keys into. Defaults to the root of the document. Supports template snippets.

      API name: target_field

    • trimKey

      @Nullable public final String trimKey()
      String of characters to trim from extracted keys.

      API name: trim_key

    • trimValue

      @Nullable public final String trimValue()
      String of characters to trim from extracted values.

      API name: trim_value

    • valueSplit

      public final String valueSplit()
      Required - Regex pattern to use for splitting the key from the value within a key-value pair.

      API name: value_split

    • serializeInternal

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

      protected static void setupKeyValueProcessorDeserializer(ObjectDeserializer<KeyValueProcessor.Builder> op)