Class JsonProcessor

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

@JsonpDeserializable public class JsonProcessor 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
    • addToRoot

      @Nullable public final Boolean addToRoot()
      Flag that forces the parsed JSON to be added at the top level of the document. target_field must not be set when this option is chosen.

      API name: add_to_root

    • addToRootConflictStrategy

      @Nullable public final JsonProcessorConflictStrategy addToRootConflictStrategy()
      When set to replace, root fields that conflict with fields from the parsed JSON will be overridden. When set to merge, conflicting fields will be merged. Only applicable if add_to_root is set to true.

      API name: add_to_root_conflict_strategy

    • allowDuplicateKeys

      @Nullable public final Boolean allowDuplicateKeys()
      When set to true, the JSON parser will not fail if the JSON contains duplicate keys. Instead, the last encountered value for any duplicate key wins.

      API name: allow_duplicate_keys

    • field

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

      API name: field

    • targetField

      @Nullable public final String targetField()
      The field that the converted structured object will be written into. Any existing content in this field will be overwritten.

      API name: target_field

    • serializeInternal

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

      protected static void setupJsonProcessorDeserializer(ObjectDeserializer<JsonProcessor.Builder> op)