Class DelayedDataCheckConfig.Builder
java.lang.Object
co.elastic.clients.util.ObjectBuilderBase
co.elastic.clients.util.WithJsonObjectBuilderBase<DelayedDataCheckConfig.Builder>
co.elastic.clients.elasticsearch.ml.DelayedDataCheckConfig.Builder
- All Implemented Interfaces:
WithJson<DelayedDataCheckConfig.Builder>
,ObjectBuilder<DelayedDataCheckConfig>
- Enclosing class:
- DelayedDataCheckConfig
public static class DelayedDataCheckConfig.Builder extends WithJsonObjectBuilderBase<DelayedDataCheckConfig.Builder> implements ObjectBuilder<DelayedDataCheckConfig>
Builder for
DelayedDataCheckConfig
.-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
Modifier and Type Method Description DelayedDataCheckConfig
build()
Builds aDelayedDataCheckConfig
.DelayedDataCheckConfig.Builder
checkWindow(Time value)
The window of time that is searched for late data.DelayedDataCheckConfig.Builder
checkWindow(java.util.function.Function<Time.Builder,ObjectBuilder<Time>> fn)
The window of time that is searched for late data.DelayedDataCheckConfig.Builder
enabled(boolean value)
Required - Specifies whether the datafeed periodically checks for delayed data.protected DelayedDataCheckConfig.Builder
self()
Methods inherited from class co.elastic.clients.util.WithJsonObjectBuilderBase
withJson
Methods inherited from class co.elastic.clients.util.ObjectBuilderBase
_checkSingleUse, _listAdd, _listAddAll, _mapPut, _mapPutAll
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
-
checkWindow
The window of time that is searched for late data. This window of time ends with the latest finalized bucket. It defaults to null, which causes an appropriatecheck_window
to be calculated when the real-time datafeed runs. In particular, the defaultcheck_window
span calculation is based on the maximum of2h
or8 * bucket_span
.API name:
check_window
-
checkWindow
public final DelayedDataCheckConfig.Builder checkWindow(java.util.function.Function<Time.Builder,ObjectBuilder<Time>> fn)The window of time that is searched for late data. This window of time ends with the latest finalized bucket. It defaults to null, which causes an appropriatecheck_window
to be calculated when the real-time datafeed runs. In particular, the defaultcheck_window
span calculation is based on the maximum of2h
or8 * bucket_span
.API name:
check_window
-
enabled
Required - Specifies whether the datafeed periodically checks for delayed data.API name:
enabled
-
self
- Specified by:
self
in classWithJsonObjectBuilderBase<DelayedDataCheckConfig.Builder>
-
build
Builds aDelayedDataCheckConfig
.- Specified by:
build
in interfaceObjectBuilder<DelayedDataCheckConfig>
- Throws:
java.lang.NullPointerException
- if some of the required fields are null.
-