Class DateProcessor
java.lang.Object
co.elastic.clients.elasticsearch.ingest.ProcessorBase
co.elastic.clients.elasticsearch.ingest.DateProcessor
- 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<DateProcessor>
Json deserializer forDateProcessor
-
Method Summary
Modifier and TypeMethodDescriptionProcessor variant kind.final String
field()
Required - The field to get the date from.formats()
Required - An array of the expected date formats.final String
locale()
The locale to use when parsing the date, relevant when parsing month names or week days.static DateProcessor
protected void
serializeInternal
(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper) protected static void
final String
The field that will hold the parsed date.final String
timezone()
The timezone to use when parsing the date.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 forDateProcessor
-
-
Method Details
-
of
-
_processorKind
Processor variant kind.- Specified by:
_processorKind
in interfaceProcessorVariant
-
field
Required - The field to get the date from.API name:
field
-
formats
Required - An array of the expected date formats. Can be a java time pattern or one of the following formats: ISO8601, UNIX, UNIX_MS, or TAI64N.API name:
formats
-
locale
The locale to use when parsing the date, relevant when parsing month names or week days. Supports template snippets.API name:
locale
-
targetField
The field that will hold the parsed date.API name:
target_field
-
timezone
The timezone to use when parsing the date. Supports template snippets.API name:
timezone
-
serializeInternal
- Overrides:
serializeInternal
in classProcessorBase
-
setupDateProcessorDeserializer
-