Class TimeSync.Builder
java.lang.Object
co.elastic.clients.util.ObjectBuilderBase
co.elastic.clients.util.WithJsonObjectBuilderBase<TimeSync.Builder>
co.elastic.clients.elasticsearch.transform.TimeSync.Builder
- All Implemented Interfaces:
WithJson<TimeSync.Builder>,ObjectBuilder<TimeSync>
- Enclosing class:
- TimeSync
public static class TimeSync.Builder extends WithJsonObjectBuilderBase<TimeSync.Builder> implements ObjectBuilder<TimeSync>
Builder for
TimeSync.-
Constructor Summary
Constructors Constructor Description Builder() -
Method Summary
Modifier and Type Method Description TimeSyncbuild()Builds aTimeSync.TimeSync.Builderdelay(Time value)The time delay between the current time and the latest input data time.TimeSync.Builderdelay(java.util.function.Function<Time.Builder,ObjectBuilder<Time>> fn)The time delay between the current time and the latest input data time.TimeSync.Builderfield(java.lang.String value)Required - The date field that is used to identify new documents in the source.protected TimeSync.Builderself()Methods inherited from class co.elastic.clients.util.WithJsonObjectBuilderBase
withJsonMethods inherited from class co.elastic.clients.util.ObjectBuilderBase
_checkSingleUse, _listAdd, _listAddAll, _mapPut, _mapPutAllMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
delay
The time delay between the current time and the latest input data time.API name:
delay -
delay
public final TimeSync.Builder delay(java.util.function.Function<Time.Builder,ObjectBuilder<Time>> fn)The time delay between the current time and the latest input data time.API name:
delay -
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 -
self
- Specified by:
selfin classWithJsonObjectBuilderBase<TimeSync.Builder>
-
build
Builds aTimeSync.- Specified by:
buildin interfaceObjectBuilder<TimeSync>- Throws:
java.lang.NullPointerException- if some of the required fields are null.
-