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 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<DateProcessor>Json deserializer forDateProcessor -
Method Summary
Modifier and TypeMethodDescriptionProcessor variant kind.final Stringfield()Required - The field to get the date from.formats()Required - An array of the expected date formats.final Stringlocale()The locale to use when parsing the date, relevant when parsing month names or week days.static DateProcessorprotected voidserializeInternal(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper) protected static voidfinal StringThe field that will hold the parsed date.final Stringtimezone()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, 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 forDateProcessor
-
-
Method Details
-
of
-
_processorKind
Processor variant kind.- Specified by:
_processorKindin 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:
serializeInternalin classProcessorBase
-
setupDateProcessorDeserializer
-