Class DateProcessor.Builder
java.lang.Object
co.elastic.clients.util.ObjectBuilderBase
co.elastic.clients.util.WithJsonObjectBuilderBase<BuilderT>
co.elastic.clients.elasticsearch.ingest.ProcessorBase.AbstractBuilder<DateProcessor.Builder>
co.elastic.clients.elasticsearch.ingest.DateProcessor.Builder
- All Implemented Interfaces:
WithJson<DateProcessor.Builder>,ObjectBuilder<DateProcessor>
- Enclosing class:
- DateProcessor
public static class DateProcessor.Builder
extends ProcessorBase.AbstractBuilder<DateProcessor.Builder>
implements ObjectBuilder<DateProcessor>
Builder for
DateProcessor.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds aDateProcessor.final DateProcessor.BuilderRequired - The field to get the date from.final DateProcessor.BuilderRequired - An array of the expected date formats.final DateProcessor.BuilderRequired - An array of the expected date formats.final DateProcessor.BuilderThe locale to use when parsing the date, relevant when parsing month names or week days.final DateProcessor.BuilderoutputFormat(String value) The format to use when writing the date to target_field.protected DateProcessor.Builderself()final DateProcessor.BuildertargetField(String value) The field that will hold the parsed date.final DateProcessor.BuilderThe timezone to use when parsing the date.Methods inherited from class co.elastic.clients.elasticsearch.ingest.ProcessorBase.AbstractBuilder
description, if_, if_, ignoreFailure, onFailure, onFailure, onFailure, onFailure, tagMethods inherited from class co.elastic.clients.util.WithJsonObjectBuilderBase
withJsonMethods inherited from class co.elastic.clients.util.ObjectBuilderBase
_checkSingleUse, _listAdd, _listAddAll, _mapPut, _mapPutAll
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
field
Required - The field to get the date from.API name:
field -
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:
formatsAdds all elements of
listtoformats. -
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:
formatsAdds one or more values to
formats. -
locale
The locale to use when parsing the date, relevant when parsing month names or week days. Supports template snippets.API name:
locale -
targetField
The field that will hold the parsed date.API name:
target_field -
timezone
The timezone to use when parsing the date. Supports template snippets.API name:
timezone -
outputFormat
The format to use when writing the date to target_field. Must be a valid java time pattern.API name:
output_format -
self
- Specified by:
selfin classProcessorBase.AbstractBuilder<DateProcessor.Builder>
-
build
Builds aDateProcessor.- Specified by:
buildin interfaceObjectBuilder<DateProcessor>- Throws:
NullPointerException- if some of the required fields are null.
-