Class DataDescription
java.lang.Object
co.elastic.clients.elasticsearch.ml.DataDescription
- All Implemented Interfaces:
JsonpSerializable
@JsonpDeserializable public final class DataDescription extends java.lang.Object implements JsonpSerializable
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
DataDescription.Builder
Builder forDataDescription
. -
Field Summary
Fields Modifier and Type Field Description static JsonpDeserializer<DataDescription>
_DESERIALIZER
Json deserializer forDataDescription
-
Constructor Summary
Constructors Constructor Description DataDescription(DataDescription.Builder builder)
DataDescription(java.util.function.Function<DataDescription.Builder,DataDescription.Builder> fn)
-
Method Summary
Modifier and Type Method Description java.lang.String
fieldDelimiter()
API name:field_delimiter
java.lang.String
format()
Only JSON format is supported at this time.void
serialize(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper)
Serialize this object to JSON.protected void
serializeInternal(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper)
protected static void
setupDataDescriptionDeserializer(DelegatingDeserializer<DataDescription.Builder> op)
java.lang.String
timeField()
Required - The name of the field that contains the timestamp.java.lang.String
timeFormat()
The time format, which can beepoch
,epoch_ms
, or a custom pattern.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Field Details
-
_DESERIALIZER
Json deserializer forDataDescription
-
-
Constructor Details
-
DataDescription
-
DataDescription
public DataDescription(java.util.function.Function<DataDescription.Builder,DataDescription.Builder> fn)
-
-
Method Details
-
format
@Nullable public java.lang.String format()Only JSON format is supported at this time.API name:
format
-
timeField
public java.lang.String timeField()Required - The name of the field that contains the timestamp.API name:
time_field
-
timeFormat
@Nullable public java.lang.String 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
@Nullable public java.lang.String fieldDelimiter()API name:field_delimiter
-
serialize
Serialize this object to JSON.- Specified by:
serialize
in interfaceJsonpSerializable
-
serializeInternal
-
setupDataDescriptionDeserializer
protected static void setupDataDescriptionDeserializer(DelegatingDeserializer<DataDescription.Builder> op)
-