Class ChunkingConfig
java.lang.Object
co.elastic.clients.elasticsearch.ml.ChunkingConfig
- All Implemented Interfaces:
JsonpSerializable
@JsonpDeserializable public class ChunkingConfig extends java.lang.Object implements JsonpSerializable
- See Also:
- API specification
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classChunkingConfig.BuilderBuilder forChunkingConfig. -
Field Summary
Fields Modifier and Type Field Description static JsonpDeserializer<ChunkingConfig>_DESERIALIZERJson deserializer forChunkingConfig -
Method Summary
Modifier and Type Method Description ChunkingModemode()Required - If the mode isauto, the chunk size is dynamically calculated; this is the recommended value when the datafeed does not use aggregations.static ChunkingConfigof(java.util.function.Function<ChunkingConfig.Builder,ObjectBuilder<ChunkingConfig>> fn)voidserialize(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper)Serialize this object to JSON.protected voidserializeInternal(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper)protected static voidsetupChunkingConfigDeserializer(ObjectDeserializer<ChunkingConfig.Builder> op)TimetimeSpan()The time span that each search will be querying.java.lang.StringtoString()Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Field Details
-
_DESERIALIZER
Json deserializer forChunkingConfig
-
-
Method Details
-
of
public static ChunkingConfig of(java.util.function.Function<ChunkingConfig.Builder,ObjectBuilder<ChunkingConfig>> fn) -
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 -
serialize
Serialize this object to JSON.- Specified by:
serializein interfaceJsonpSerializable
-
serializeInternal
-
toString
public java.lang.String toString()- Overrides:
toStringin classjava.lang.Object
-
setupChunkingConfigDeserializer
protected static void setupChunkingConfigDeserializer(ObjectDeserializer<ChunkingConfig.Builder> op)
-