Class TimeSync
java.lang.Object
co.elastic.clients.elasticsearch.transform.TimeSync
- All Implemented Interfaces:
SyncVariant
,JsonpSerializable
@JsonpDeserializable public class TimeSync extends java.lang.Object implements SyncVariant, JsonpSerializable
- See Also:
- API specification
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
TimeSync.Builder
Builder forTimeSync
. -
Field Summary
Fields Modifier and Type Field Description static JsonpDeserializer<TimeSync>
_DESERIALIZER
Json deserializer forTimeSync
-
Method Summary
Modifier and Type Method Description Sync.Kind
_syncKind()
Sync variant kind.Time
delay()
The time delay between the current time and the latest input data time.java.lang.String
field()
Required - The date field that is used to identify new documents in the source.static TimeSync
of(java.util.function.Function<TimeSync.Builder,ObjectBuilder<TimeSync>> fn)
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
setupTimeSyncDeserializer(ObjectDeserializer<TimeSync.Builder> op)
java.lang.String
toString()
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface co.elastic.clients.elasticsearch.transform.SyncVariant
_toSync
-
Field Details
-
_DESERIALIZER
Json deserializer forTimeSync
-
-
Method Details
-
of
public static TimeSync of(java.util.function.Function<TimeSync.Builder,ObjectBuilder<TimeSync>> fn) -
_syncKind
Sync variant kind.- Specified by:
_syncKind
in interfaceSyncVariant
-
delay
The time delay between the current time and the latest input data time.API name:
delay
-
field
public final java.lang.String field()Required - The date field that is used to identify new documents in the source. In general, it’s a good idea to use a field that contains the ingest timestamp. If you use a different field, you might need to set the delay such that it accounts for data transmission delays.API name:
field
-
serialize
Serialize this object to JSON.- Specified by:
serialize
in interfaceJsonpSerializable
-
serializeInternal
-
toString
public java.lang.String toString()- Overrides:
toString
in classjava.lang.Object
-
setupTimeSyncDeserializer
-