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 ClassesNested classes/interfaces inherited from class co.elastic.clients.elasticsearch.ingest.ProcessorBase
ProcessorBase.AbstractBuilder<BuilderT extends ProcessorBase.AbstractBuilder<BuilderT>> -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final JsonpDeserializer<JsonProcessor>Json deserializer forJsonProcessor -
Method Summary
Modifier and TypeMethodDescriptionProcessor variant kind.final BooleanFlag 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 BooleanWhen set totrue, the JSON parser will not fail if the JSON contains duplicate keys.final Stringfield()Required - The field to be parsed.static JsonProcessorprotected voidserializeInternal(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper) protected static voidfinal StringThe 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, toStringMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods 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:
_processorKindin interfaceProcessorVariant
-
addToRoot
Flag that forces the parsed JSON to be added at the top level of the document.target_fieldmust 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_rootis 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:
serializeInternalin classProcessorBase
-
setupJsonProcessorDeserializer
-