Class DateIndexNameProcessor
java.lang.Object
org.opensearch.client.opensearch.ingest.ProcessorBase
org.opensearch.client.opensearch.ingest.DateIndexNameProcessor
- All Implemented Interfaces:
JsonpSerializable,PlainJsonSerializable,ProcessorVariant,ToCopyableBuilder<DateIndexNameProcessor.Builder,DateIndexNameProcessor>
@JsonpDeserializable
@Generated("org.opensearch.client.codegen.CodeGenerator")
public class DateIndexNameProcessor
extends ProcessorBase
implements ProcessorVariant, ToCopyableBuilder<DateIndexNameProcessor.Builder,DateIndexNameProcessor>
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class org.opensearch.client.opensearch.ingest.ProcessorBase
ProcessorBase.AbstractBuilder<BuilderT extends ProcessorBase.AbstractBuilder<BuilderT>> -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final JsonpDeserializer<DateIndexNameProcessor> Json deserializer forDateIndexNameProcessor -
Method Summary
Modifier and TypeMethodDescriptionProcessorvariant kind.builder()Required - 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.booleanfinal Stringfield()Required - API name:fieldinthashCode()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 time zone to use when parsing the date and when date math index supports resolves expressions into concrete index names.Create a new builderToCopyableBuilderthat is initialised with the current state of this object.Methods inherited from class org.opensearch.client.opensearch.ingest.ProcessorBase
description, if_, ignoreFailure, onFailure, serialize, setupProcessorBaseDeserializer, tagMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.opensearch.client.json.PlainJsonSerializable
toJsonStringMethods inherited from interface org.opensearch.client.opensearch.ingest.ProcessorVariant
toProcessorMethods inherited from interface org.opensearch.client.util.ToCopyableBuilder
copy
-
Field Details
-
_DESERIALIZER
Json deserializer forDateIndexNameProcessor
-
-
Method Details
-
of
public static DateIndexNameProcessor of(Function<DateIndexNameProcessor.Builder, ObjectBuilder<DateIndexNameProcessor>> fn) -
_processorKind
Processorvariant kind.- Specified by:
_processorKindin 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, orTAI64N.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 - 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 time zone 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
-
toBuilder
Description copied from interface:ToCopyableBuilderCreate a new builderToCopyableBuilderthat is initialised with the current state of this object.- Specified by:
toBuilderin interfaceToCopyableBuilder<DateIndexNameProcessor.Builder,DateIndexNameProcessor> - Returns:
- a new builder instance.
-
builder
-
setupDateIndexNameProcessorDeserializer
protected static void setupDateIndexNameProcessorDeserializer(ObjectDeserializer<DateIndexNameProcessor.Builder> op) -
hashCode
public int hashCode()- Overrides:
hashCodein classProcessorBase
-
equals
- Overrides:
equalsin classProcessorBase
-