Class DateIndexNameProcessor
java.lang.Object
co.elastic.clients.elasticsearch.ingest.ProcessorBase
co.elastic.clients.elasticsearch.ingest.DateIndexNameProcessor
- All Implemented Interfaces:
ProcessorVariant
,JsonpSerializable
@JsonpDeserializable
public class DateIndexNameProcessor
extends ProcessorBase
implements ProcessorVariant
- 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<DateIndexNameProcessor>
Json deserializer forDateIndexNameProcessor
-
Method Summary
Modifier and TypeMethodDescriptionProcessor variant kind.Required - An array of the expected date formats for parsing dates / timestamps in the document being preprocessed.final String
Required - How to round the date when formatting the date into the index name.final String
field()
Required - The field to get the date or timestamp from.final String
The format to be used when printing the parsed date into the index name.final String
A prefix of the index name to be prepended before the printed date.final String
locale()
The locale to use when parsing the date from the document being preprocessed, relevant when parsing month names or week days.static DateIndexNameProcessor
protected void
serializeInternal
(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper) protected static void
final String
timezone()
The timezone to use when parsing the date and when date math index supports resolves expressions into concrete index names.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 forDateIndexNameProcessor
-
-
Method Details
-
of
public static DateIndexNameProcessor of(Function<DateIndexNameProcessor.Builder, ObjectBuilder<DateIndexNameProcessor>> fn) -
_processorKind
Processor variant kind.- Specified by:
_processorKind
in interfaceProcessorVariant
-
dateFormats
Required - An array of the expected date formats for parsing dates / timestamps in the document being preprocessed. Can be a java time pattern or one of the following formats: ISO8601, UNIX, UNIX_MS, or TAI64N.API name:
date_formats
-
dateRounding
Required - How to round the date when formatting the date into the index name. Valid values are:y
(year),M
(month),w
(week),d
(day),h
(hour),m
(minute) ands
(second). Supports template snippets.API name:
date_rounding
-
field
Required - The field to get the date or timestamp from.API name:
field
-
indexNameFormat
The format to be used when printing the parsed date into the index name. A valid java time pattern is expected here. Supports template snippets.API name:
index_name_format
-
indexNamePrefix
A prefix of the index name to be prepended before the printed date. Supports template snippets.API name:
index_name_prefix
-
locale
The locale to use when parsing the date from the document being preprocessed, relevant when parsing month names or week days.API name:
locale
-
timezone
The timezone to use when parsing the date and when date math index supports resolves expressions into concrete index names.API name:
timezone
-
serializeInternal
- Overrides:
serializeInternal
in classProcessorBase
-
setupDateIndexNameProcessorDeserializer
protected static void setupDateIndexNameProcessorDeserializer(ObjectDeserializer<DateIndexNameProcessor.Builder> op)
-