Class ChunkingConfig.Builder
java.lang.Object
co.elastic.clients.elasticsearch.ml.ChunkingConfig.Builder
- All Implemented Interfaces:
ObjectBuilder<ChunkingConfig>
- Enclosing class:
- ChunkingConfig
public static class ChunkingConfig.Builder extends java.lang.Object implements ObjectBuilder<ChunkingConfig>
Builder for
ChunkingConfig.-
Constructor Summary
Constructors Constructor Description Builder() -
Method Summary
Modifier and Type Method Description ChunkingConfigbuild()Builds aChunkingConfig.ChunkingConfig.Buildermode(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.BuildertimeSpan(java.lang.String value)The time span that each search will be querying.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 themodeis set tomanual.API name:
time_span -
build
Builds aChunkingConfig.- Specified by:
buildin interfaceObjectBuilder<ChunkingConfig>- Throws:
java.lang.NullPointerException- if some of the required fields are null.
-