Class DataDescription.Builder
java.lang.Object
co.elastic.clients.util.ObjectBuilderBase
co.elastic.clients.elasticsearch.ml.DataDescription.Builder
- All Implemented Interfaces:
ObjectBuilder<DataDescription>
- Enclosing class:
- DataDescription
public static class DataDescription.Builder extends ObjectBuilderBase implements ObjectBuilder<DataDescription>
Builder for
DataDescription
.-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
Modifier and Type Method Description DataDescription
build()
Builds aDataDescription
.DataDescription.Builder
fieldDelimiter(java.lang.String value)
API name:field_delimiter
DataDescription.Builder
format(java.lang.String value)
Only JSON format is supported at this time.DataDescription.Builder
timeField(java.lang.String value)
Required - The name of the field that contains the timestamp.DataDescription.Builder
timeFormat(java.lang.String value)
The time format, which can beepoch
,epoch_ms
, or a custom pattern.Methods inherited from class co.elastic.clients.util.ObjectBuilderBase
_checkSingleUse, _listAdd, _listAddAll, _mapPut, _mapPutAll
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
format
Only JSON format is supported at this time.API name:
format
-
timeField
Required - The name of the field that contains the timestamp.API name:
time_field
-
timeFormat
The time format, which can beepoch
,epoch_ms
, or a custom pattern. The valueepoch
refers to UNIX or Epoch time (the number of seconds since 1 Jan 1970). The valueepoch_ms
indicates that time is measured in milliseconds since the epoch. Theepoch
andepoch_ms
time formats accept either integer or real values. Custom patterns must conform to the Java DateTimeFormatter class. When you use date-time formatting patterns, it is recommended that you provide the full date, time and time zone. For example: yyyy-MM-dd'T'HH:mm:ssX. If the pattern that you specify is not sufficient to produce a complete timestamp, job creation fails.API name:
time_format
-
fieldDelimiter
API name:field_delimiter
-
build
Builds aDataDescription
.- Specified by:
build
in interfaceObjectBuilder<DataDescription>
- Throws:
java.lang.NullPointerException
- if some of the required fields are null.
-