Class RedactProcessor
java.lang.Object
co.elastic.clients.elasticsearch.ingest.ProcessorBase
co.elastic.clients.elasticsearch.ingest.RedactProcessor
- 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<RedactProcessor>Json deserializer forRedactProcessor -
Method Summary
Modifier and TypeMethodDescriptionProcessor variant kind.final Stringfield()Required - The field to be redactedfinal BooleanIftrueandfielddoes not exist or isnull, the processor quietly exits without modifying the document.static RedactProcessorAPI name:pattern_definitionspatterns()Required - A list of grok expressions to match and redact named captures withfinal Stringprefix()Start a redacted section with this tokenprotected voidserializeInternal(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper) protected static voidfinal BooleanIftrueand the current license does not support running redact processors, then the processor quietly exits without modifying the documentfinal Stringsuffix()End a redacted section with this tokenfinal BooleanIftruethen ingest metadata_ingest._redact._is_redactedis set totrueif the document has been redactedMethods 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 forRedactProcessor
-
-
Method Details
-
of
public static RedactProcessor of(Function<RedactProcessor.Builder, ObjectBuilder<RedactProcessor>> fn) -
_processorKind
Processor variant kind.- Specified by:
_processorKindin interfaceProcessorVariant
-
field
Required - The field to be redactedAPI name:
field -
patterns
Required - A list of grok expressions to match and redact named captures withAPI name:
patterns -
patternDefinitions
API name:pattern_definitions -
prefix
Start a redacted section with this tokenAPI name:
prefix -
suffix
End a redacted section with this tokenAPI name:
suffix -
ignoreMissing
Iftrueandfielddoes not exist or isnull, the processor quietly exits without modifying the document.API name:
ignore_missing -
skipIfUnlicensed
Iftrueand the current license does not support running redact processors, then the processor quietly exits without modifying the documentAPI name:
skip_if_unlicensed -
traceRedact
Iftruethen ingest metadata_ingest._redact._is_redactedis set totrueif the document has been redactedAPI name:
trace_redact -
serializeInternal
- Overrides:
serializeInternalin classProcessorBase
-
setupRedactProcessorDeserializer
protected static void setupRedactProcessorDeserializer(ObjectDeserializer<RedactProcessor.Builder> op)
-