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 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<DateIndexNameProcessor>Json deserializer forDateIndexNameProcessor -
Method Summary
Modifier and TypeMethodDescriptionProcessor variant kind.An array of the expected date formats for parsing dates / timestamps in the document being preprocessed.final StringRequired - How to round the date when formatting the date into the index name.final Stringfield()Required - The field to get the date or timestamp from.final StringThe format to be used when printing the parsed date into the index name.final StringA prefix of the index name to be prepended before the printed date.final Stringlocale()The locale to use when parsing the date from the document being preprocessed, relevant when parsing month names or week days.static DateIndexNameProcessorprotected voidserializeInternal(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper) protected static voidfinal Stringtimezone()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, 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 forDateIndexNameProcessor
-
-
Method Details
-
of
public static DateIndexNameProcessor of(Function<DateIndexNameProcessor.Builder, ObjectBuilder<DateIndexNameProcessor>> fn) -
_processorKind
Processor variant kind.- Specified by:
_processorKindin interfaceProcessorVariant
-
dateFormats
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:
serializeInternalin classProcessorBase
-
setupDateIndexNameProcessorDeserializer
protected static void setupDateIndexNameProcessorDeserializer(ObjectDeserializer<DateIndexNameProcessor.Builder> op)
-