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
  • Field Details

  • Method Details

    • of

      public static TimeSync of​(java.util.function.Function<TimeSync.Builder,​ObjectBuilder<TimeSync>> fn)
    • _syncKind

      public Sync.Kind _syncKind()
      Sync variant kind.
      Specified by:
      _syncKind in interface SyncVariant
    • delay

      @Nullable public final Time 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

      public void serialize​(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper)
      Serialize this object to JSON.
      Specified by:
      serialize in interface JsonpSerializable
    • serializeInternal

      protected void serializeInternal​(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper)
    • setupTimeSyncDeserializer

      protected static void setupTimeSyncDeserializer​(ObjectDeserializer<TimeSync.Builder> op)