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
  • Field Details

  • Constructor Details

  • Method Details

    • mode

      public ChunkingMode mode()
      If the mode is auto, the chunk size is dynamically calculated; this is the recommended value when the datafeed does not use aggregations. If the mode is manual, chunking is applied according to the specified time_span; use this mode when the datafeed uses aggregations. If the mode is off, 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 the mode is set to manual.

      API name: time_span

    • serialize

      public void serialize​(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper)
      Serialize this object to JSON.
      Specified by:
      serialize in interface JsonpSerializable
    • serializeInternal

      protected void serializeInternal​(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper)
    • setupChunkingConfigDeserializer

      protected static void setupChunkingConfigDeserializer​(DelegatingDeserializer<ChunkingConfig.Builder> op)