Class DateProcessor

java.lang.Object
co.elastic.clients.elasticsearch.ingest.ProcessorBase
co.elastic.clients.elasticsearch.ingest.DateProcessor
All Implemented Interfaces:
ProcessorVariant, JsonpSerializable

@JsonpDeserializable public class DateProcessor 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
    • field

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

      API name: field

    • formats

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

      @Nullable public final String locale()
      The locale to use when parsing the date, relevant when parsing month names or week days. Supports template snippets.

      API name: locale

    • targetField

      @Nullable public final String targetField()
      The field that will hold the parsed date.

      API name: target_field

    • timezone

      @Nullable public final String timezone()
      The timezone to use when parsing the date. Supports template snippets.

      API name: timezone

    • serializeInternal

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

      protected static void setupDateProcessorDeserializer(ObjectDeserializer<DateProcessor.Builder> op)