Class ChunkingConfig
java.lang.Object
co.elastic.clients.elasticsearch.ml.ChunkingConfig
- All Implemented Interfaces:
JsonpSerializable
@JsonpDeserializable public final class ChunkingConfig extends java.lang.Object implements JsonpSerializable
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
ChunkingConfig.Builder
Builder forChunkingConfig
. -
Field Summary
Fields Modifier and Type Field Description static JsonpDeserializer<ChunkingConfig>
_DESERIALIZER
Json deserializer forChunkingConfig
-
Constructor Summary
Constructors Constructor Description ChunkingConfig(ChunkingConfig.Builder builder)
ChunkingConfig(java.util.function.Function<ChunkingConfig.Builder,ChunkingConfig.Builder> fn)
-
Method Summary
Modifier and Type Method Description ChunkingMode
mode()
If the mode isauto
, the chunk size is dynamically calculated; this is the recommended value when the datafeed does not use aggregations.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
setupChunkingConfigDeserializer(DelegatingDeserializer<ChunkingConfig.Builder> op)
java.lang.String
timeSpan()
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
-
Field Details
-
_DESERIALIZER
Json deserializer forChunkingConfig
-
-
Constructor Details
-
ChunkingConfig
-
ChunkingConfig
public ChunkingConfig(java.util.function.Function<ChunkingConfig.Builder,ChunkingConfig.Builder> fn)
-
-
Method Details
-
mode
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
@Nullable public java.lang.String timeSpan()The time span that each search will be querying. This setting is only applicable when themode
is set tomanual
.API name:
time_span
-
serialize
Serialize this object to JSON.- Specified by:
serialize
in interfaceJsonpSerializable
-
serializeInternal
-
setupChunkingConfigDeserializer
protected static void setupChunkingConfigDeserializer(DelegatingDeserializer<ChunkingConfig.Builder> op)
-