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 SummaryConstructors
- 
Method SummaryModifier 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.WithJsonObjectBuilderBasewithJsonMethods inherited from class co.elastic.clients.util.ObjectBuilderBase_checkSingleUse, _listAdd, _listAddAll, _mapPut, _mapPutAll
- 
Constructor Details- 
Builderpublic Builder()
 
- 
- 
Method Details- 
modeRequired - 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
- 
timeSpanThe time span that each search will be querying. This setting is applicable only when themodeis set tomanual.API name: time_span
- 
timeSpanThe 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 class- WithJsonObjectBuilderBase<ChunkingConfig.Builder>
 
- 
buildBuilds aChunkingConfig.- Specified by:
- buildin interface- ObjectBuilder<ChunkingConfig>
- Throws:
- NullPointerException- if some of the required fields are null.
 
 
-