Class ChunkingConfig.Builder
java.lang.Object
co.elastic.clients.util.ObjectBuilderBase
co.elastic.clients.elasticsearch.ml.ChunkingConfig.Builder
- All Implemented Interfaces:
ObjectBuilder<ChunkingConfig>
- Enclosing class:
- ChunkingConfig
public static class ChunkingConfig.Builder extends ObjectBuilderBase implements ObjectBuilder<ChunkingConfig>
Builder for
ChunkingConfig
.-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
Modifier and Type Method Description ChunkingConfig
build()
Builds aChunkingConfig
.ChunkingConfig.Builder
mode(ChunkingMode value)
Required - If the mode isauto
, the chunk size is dynamically calculated; this is the recommended value when the datafeed does not use aggregations.ChunkingConfig.Builder
timeSpan(Time value)
The time span that each search will be querying.ChunkingConfig.Builder
timeSpan(java.util.function.Function<Time.Builder,ObjectBuilder<Time>> fn)
The time span that each search will be querying.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
-
mode
Required - If the mode isauto
, the chunk size is dynamically calculated; this is the recommended value when the datafeed does not use aggregations. If the mode ismanual
, chunking is applied according to the specifiedtime_span
; use this mode when the datafeed uses aggregations. If the mode isoff
, no chunking is applied.API name:
mode
-
timeSpan
The time span that each search will be querying. This setting is only applicable when themode
is set tomanual
.API name:
time_span
-
timeSpan
public final ChunkingConfig.Builder timeSpan(java.util.function.Function<Time.Builder,ObjectBuilder<Time>> fn)The time span that each search will be querying. This setting is only applicable when themode
is set tomanual
.API name:
time_span
-
build
Builds aChunkingConfig
.- Specified by:
build
in interfaceObjectBuilder<ChunkingConfig>
- Throws:
java.lang.NullPointerException
- if some of the required fields are null.
-