Class TimeSyncConfig.Builder
java.lang.Object
org.elasticsearch.client.transform.transforms.TimeSyncConfig.Builder
- Enclosing class:
- TimeSyncConfig
public static class TimeSyncConfig.Builder
extends java.lang.Object
-
Constructor Summary
Constructors Constructor Description Builder() -
Method Summary
Modifier and Type Method Description TimeSyncConfigbuild()TimeSyncConfig.BuildersetDelay(org.elasticsearch.common.unit.TimeValue delay)The time delay between the current time and the latest input data time.TimeSyncConfig.BuildersetField(java.lang.String field)The date field that is used to identify new documents in the source.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
-
setField
The date field that is used to identify new documents in the source.- Parameters:
field- The field name of the timestamp field used for synchronizing- Returns:
- The
TimeSyncConfig.Builderwith the field set.
-
setDelay
The time delay between the current time and the latest input data time. The default value is 60s.- Parameters:
delay- the delay to use when checking for changes- Returns:
- The
TimeSyncConfig.Builderwith delay set.
-
build
-