Class JsonProcessor
java.lang.Object
co.elastic.clients.elasticsearch.ingest.ProcessorBase
co.elastic.clients.elasticsearch.ingest.JsonProcessor
- All Implemented Interfaces:
ProcessorVariant
,JsonpSerializable
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class co.elastic.clients.elasticsearch.ingest.ProcessorBase
ProcessorBase.AbstractBuilder<BuilderT extends ProcessorBase.AbstractBuilder<BuilderT>>
-
Field Summary
Modifier and TypeFieldDescriptionstatic final JsonpDeserializer<JsonProcessor>
Json deserializer forJsonProcessor
-
Method Summary
Modifier and TypeMethodDescriptionProcessor variant kind.final Boolean
Flag that forces the parsed JSON to be added at the top level of the document.When set toreplace
, root fields that conflict with fields from the parsed JSON will be overridden.final Boolean
When set totrue
, the JSON parser will not fail if the JSON contains duplicate keys.final String
field()
Required - The field to be parsed.static JsonProcessor
protected void
serializeInternal
(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper) protected static void
final String
The field that the converted structured object will be written into.Methods inherited from class co.elastic.clients.elasticsearch.ingest.ProcessorBase
description, if_, ignoreFailure, onFailure, serialize, setupProcessorBaseDeserializer, tag, toString
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface co.elastic.clients.elasticsearch.ingest.ProcessorVariant
_toProcessor
-
Field Details
-
_DESERIALIZER
Json deserializer forJsonProcessor
-
-
Method Details
-
of
-
_processorKind
Processor variant kind.- Specified by:
_processorKind
in interfaceProcessorVariant
-
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
When set toreplace
, root fields that conflict with fields from the parsed JSON will be overridden. When set tomerge
, conflicting fields will be merged. Only applicableif add_to_root
is set to true.API name:
add_to_root_conflict_strategy
-
allowDuplicateKeys
When set totrue
, 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
Required - The field to be parsed.API name:
field
-
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
- Overrides:
serializeInternal
in classProcessorBase
-
setupJsonProcessorDeserializer
-