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:
  • Field Details

  • Method Details

    • of

    • _processorKind

      public Processor.Kind _processorKind()
      Processor variant kind.
      Specified by:
      _processorKind in interface ProcessorVariant
    • dateFormats

      public final List<String> 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

      public final String 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) and s (second). Supports template snippets.

      API name: date_rounding

    • field

      public final String field()
      Required - The field to get the date or timestamp from.

      API name: field

    • indexNameFormat

      @Nullable public final String 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

      @Nullable public final String indexNamePrefix()
      A prefix of the index name to be prepended before the printed date. Supports template snippets.

      API name: index_name_prefix

    • locale

      @Nullable public final String 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

      @Nullable public final String 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

      protected void serializeInternal(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper)
      Overrides:
      serializeInternal in class ProcessorBase
    • setupDateIndexNameProcessorDeserializer

      protected static void setupDateIndexNameProcessorDeserializer(ObjectDeserializer<DateIndexNameProcessor.Builder> op)