Class DateIndexNameProcessor.Builder
java.lang.Object
co.elastic.clients.util.ObjectBuilderBase
co.elastic.clients.util.WithJsonObjectBuilderBase<BuilderT>
co.elastic.clients.elasticsearch.ingest.ProcessorBase.AbstractBuilder<DateIndexNameProcessor.Builder>
co.elastic.clients.elasticsearch.ingest.DateIndexNameProcessor.Builder
- All Implemented Interfaces:
- WithJson<DateIndexNameProcessor.Builder>,- ObjectBuilder<DateIndexNameProcessor>
- Enclosing class:
- DateIndexNameProcessor
public static class DateIndexNameProcessor.Builder
extends ProcessorBase.AbstractBuilder<DateIndexNameProcessor.Builder>
implements ObjectBuilder<DateIndexNameProcessor>
Builder for 
DateIndexNameProcessor.- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionbuild()Builds aDateIndexNameProcessor.dateFormats(String value, String... values) An array of the expected date formats for parsing dates / timestamps in the document being preprocessed.dateFormats(List<String> list) An array of the expected date formats for parsing dates / timestamps in the document being preprocessed.dateRounding(String value) Required - How to round the date when formatting the date into the index name.Required - The field to get the date or timestamp from.indexNameFormat(String value) The format to be used when printing the parsed date into the index name.indexNamePrefix(String value) A prefix of the index name to be prepended before the printed date.The locale to use when parsing the date from the document being preprocessed, relevant when parsing month names or week days.protected DateIndexNameProcessor.Builderself()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.AbstractBuilderdescription, if_, if_, ignoreFailure, onFailure, onFailure, onFailure, onFailure, tagMethods inherited from class co.elastic.clients.util.WithJsonObjectBuilderBasewithJsonMethods inherited from class co.elastic.clients.util.ObjectBuilderBase_checkSingleUse, _listAdd, _listAddAll, _mapPut, _mapPutAll
- 
Constructor Details- 
Builderpublic Builder()
 
- 
- 
Method Details- 
dateFormatsAn 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_formatsAdds all elements of listtodateFormats.
- 
dateFormatsAn 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_formatsAdds one or more values to dateFormats.
- 
dateRoundingRequired - 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
- 
fieldRequired - The field to get the date or timestamp from.API name: field
- 
indexNameFormatThe 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
- 
indexNamePrefixA prefix of the index name to be prepended before the printed date. Supports template snippets.API name: index_name_prefix
- 
localeThe locale to use when parsing the date from the document being preprocessed, relevant when parsing month names or week days.API name: locale
- 
timezoneThe timezone to use when parsing the date and when date math index supports resolves expressions into concrete index names.API name: timezone
- 
self- Specified by:
- selfin class- ProcessorBase.AbstractBuilder<DateIndexNameProcessor.Builder>
 
- 
buildBuilds aDateIndexNameProcessor.- Specified by:
- buildin interface- ObjectBuilder<DateIndexNameProcessor>
- Throws:
- NullPointerException- if some of the required fields are null.
 
 
-