Class ChunkingConfig
java.lang.Object
co.elastic.clients.elasticsearch.ml.ChunkingConfig
- All Implemented Interfaces:
JsonpSerializable
- See Also:
-
Nested Class Summary
-
Field Summary
Modifier and TypeFieldDescriptionstatic final JsonpDeserializer<ChunkingConfig>
Json deserializer forChunkingConfig
-
Method Summary
Modifier and TypeMethodDescriptionfinal ChunkingMode
mode()
Required - If the mode isauto
, the chunk size is dynamically calculated; this is the recommended value when the datafeed does not use aggregations.static ChunkingConfig
void
serialize
(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper) Serialize this object to JSON.protected void
serializeInternal
(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper) protected static void
final Time
timeSpan()
The time span that each search will be querying.toString()
-
Field Details
-
_DESERIALIZER
Json deserializer forChunkingConfig
-
-
Method Details
-
of
-
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 themode
is set tomanual
.API name:
time_span
-
serialize
Serialize this object to JSON.- Specified by:
serialize
in interfaceJsonpSerializable
-
serializeInternal
-
toString
-
setupChunkingConfigDeserializer
protected static void setupChunkingConfigDeserializer(ObjectDeserializer<ChunkingConfig.Builder> op)
-