Class KeyValueProcessor
java.lang.Object
org.opensearch.client.opensearch.ingest.ProcessorBase
org.opensearch.client.opensearch.ingest.KeyValueProcessor
- All Implemented Interfaces:
JsonpSerializable,PlainJsonSerializable,ProcessorVariant,ToCopyableBuilder<KeyValueProcessor.Builder,KeyValueProcessor>
@JsonpDeserializable
@Generated("org.opensearch.client.codegen.CodeGenerator")
public class KeyValueProcessor
extends ProcessorBase
implements ProcessorVariant, ToCopyableBuilder<KeyValueProcessor.Builder,KeyValueProcessor>
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class org.opensearch.client.opensearch.ingest.ProcessorBase
ProcessorBase.AbstractBuilder<BuilderT extends ProcessorBase.AbstractBuilder<BuilderT>> -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final JsonpDeserializer<KeyValueProcessor> Json deserializer forKeyValueProcessor -
Method Summary
Modifier and TypeMethodDescriptionProcessorvariant kind.static KeyValueProcessor.Builderbuilder()booleanList of keys to exclude from document.final Stringfield()Required - API name:fieldfinal StringRequired - Regex pattern to use for splitting key-value pairs.inthashCode()final BooleanIftrueandfielddoes not exist or isnull, the processor quietly exits without modifying the document.List of keys to filter and insert into document.static KeyValueProcessorfinal Stringprefix()Prefix to be added to extracted keys.protected voidserializeInternal(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper) protected static voidfinal BooleanIftrue.final StringAPI name:target_fieldCreate a new builderToCopyableBuilderthat is initialised with the current state of this object.final StringtrimKey()String of characters to trim from extracted keys.final StringString of characters to trim from extracted values.final StringRequired - Regex pattern to use for splitting the key from the value within a key-value pair.Methods inherited from class org.opensearch.client.opensearch.ingest.ProcessorBase
description, if_, ignoreFailure, onFailure, serialize, setupProcessorBaseDeserializer, tagMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.opensearch.client.json.PlainJsonSerializable
toJsonStringMethods inherited from interface org.opensearch.client.opensearch.ingest.ProcessorVariant
toProcessorMethods inherited from interface org.opensearch.client.util.ToCopyableBuilder
copy
-
Field Details
-
_DESERIALIZER
Json deserializer forKeyValueProcessor
-
-
Method Details
-
of
public static KeyValueProcessor of(Function<KeyValueProcessor.Builder, ObjectBuilder<KeyValueProcessor>> fn) -
_processorKind
Processorvariant kind.- Specified by:
_processorKindin interfaceProcessorVariant
-
excludeKeys
List of keys to exclude from document.API name:
exclude_keys -
field
Required - API name:field -
fieldSplit
Required - Regex pattern to use for splitting key-value pairs.API name:
field_split -
ignoreMissing
Iftrueandfielddoes not exist or isnull, the processor quietly exits without modifying the document.API name:
ignore_missing -
includeKeys
List of keys to filter and insert into document. Defaults to including all keys.API name:
include_keys -
prefix
Prefix to be added to extracted keys.API name:
prefix -
stripBrackets
Iftrue. strip brackets(),<>,[]as well as quotes'and"from extracted values.API name:
strip_brackets -
targetField
API name:target_field -
trimKey
String of characters to trim from extracted keys.API name:
trim_key -
trimValue
String of characters to trim from extracted values.API name:
trim_value -
valueSplit
Required - Regex pattern to use for splitting the key from the value within a key-value pair.API name:
value_split -
serializeInternal
- Overrides:
serializeInternalin classProcessorBase
-
toBuilder
Description copied from interface:ToCopyableBuilderCreate a new builderToCopyableBuilderthat is initialised with the current state of this object.- Specified by:
toBuilderin interfaceToCopyableBuilder<KeyValueProcessor.Builder,KeyValueProcessor> - Returns:
- a new builder instance.
-
builder
-
setupKeyValueProcessorDeserializer
protected static void setupKeyValueProcessorDeserializer(ObjectDeserializer<KeyValueProcessor.Builder> op) -
hashCode
public int hashCode()- Overrides:
hashCodein classProcessorBase
-
equals
- Overrides:
equalsin classProcessorBase
-