Class ChunkingConfig.Builder
java.lang.Object
co.elastic.clients.util.ObjectBuilderBase
co.elastic.clients.util.WithJsonObjectBuilderBase<ChunkingConfig.Builder>
co.elastic.clients.elasticsearch.ml.ChunkingConfig.Builder
- All Implemented Interfaces:
WithJson<ChunkingConfig.Builder>,ObjectBuilder<ChunkingConfig>
- Enclosing class:
- ChunkingConfig
public static class ChunkingConfig.Builder
extends WithJsonObjectBuilderBase<ChunkingConfig.Builder>
implements ObjectBuilder<ChunkingConfig>
Builder for
ChunkingConfig.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds aChunkingConfig.final 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.protected ChunkingConfig.Builderself()final ChunkingConfig.BuilderThe time span that each search will be querying.final ChunkingConfig.BuilderThe time span that each search will be querying.Methods inherited from class co.elastic.clients.util.WithJsonObjectBuilderBase
withJsonMethods inherited from class co.elastic.clients.util.ObjectBuilderBase
_checkSingleUse, _listAdd, _listAddAll, _mapPut, _mapPutAll
-
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 applicable only when themodeis set tomanual.API name:
time_span -
timeSpan
The time span that each search will be querying. This setting is applicable only when themodeis set tomanual.API name:
time_span -
self
- Specified by:
selfin classWithJsonObjectBuilderBase<ChunkingConfig.Builder>
-
build
Builds aChunkingConfig.- Specified by:
buildin interfaceObjectBuilder<ChunkingConfig>- Throws:
NullPointerException- if some of the required fields are null.
-