Class ChunkingConfig.Builder

java.lang.Object
co.elastic.clients.elasticsearch.ml.ChunkingConfig.Builder
All Implemented Interfaces:
ObjectBuilder<ChunkingConfig>
Enclosing class:
ChunkingConfig

public static class ChunkingConfig.Builder
extends java.lang.Object
implements ObjectBuilder<ChunkingConfig>
Builder for ChunkingConfig.
  • Constructor Summary

    Constructors
    Constructor Description
    Builder()  
  • Method Summary

    Modifier and Type Method Description
    ChunkingConfig build()
    Builds a ChunkingConfig.
    ChunkingConfig.Builder mode​(ChunkingMode value)
    Required - If the mode is auto, the chunk size is dynamically calculated; this is the recommended value when the datafeed does not use aggregations.
    ChunkingConfig.Builder timeSpan​(java.lang.String value)
    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
  • Constructor Details

    • Builder

      public Builder()
  • Method Details

    • mode

      public ChunkingConfig.Builder mode​(ChunkingMode value)
      Required - 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

      public ChunkingConfig.Builder timeSpan​(@Nullable java.lang.String value)
      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

    • build

      public ChunkingConfig build()
      Builds a ChunkingConfig.
      Specified by:
      build in interface ObjectBuilder<ChunkingConfig>
      Throws:
      java.lang.NullPointerException - if some of the required fields are null.