Class SettingsConfig.Builder

java.lang.Object
org.elasticsearch.client.transform.transforms.SettingsConfig.Builder
Enclosing class:
SettingsConfig

public static class SettingsConfig.Builder
extends java.lang.Object
  • Constructor Summary

    Constructors 
    Constructor Description
    Builder()  
  • Method Summary

    Modifier and Type Method Description
    SettingsConfig build()  
    SettingsConfig.Builder setMaxPageSearchSize​(java.lang.Integer maxPageSearchSize)
    Sets the paging maximum paging maxPageSearchSize that transform can use when pulling the data from the source index.
    SettingsConfig.Builder setRequestsPerSecond​(java.lang.Float docsPerSecond)
    Sets the docs per second that transform can use when pulling the data from the source index.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

  • Method Details

    • setMaxPageSearchSize

      public SettingsConfig.Builder setMaxPageSearchSize​(java.lang.Integer maxPageSearchSize)
      Sets the paging maximum paging maxPageSearchSize that transform can use when pulling the data from the source index. If OOM is triggered, the paging maxPageSearchSize is dynamically reduced so that the transform can continue to gather data.
      Parameters:
      maxPageSearchSize - Integer value between 10 and 10_000
      Returns:
      the SettingsConfig.Builder with the paging maxPageSearchSize set.
    • setRequestsPerSecond

      public SettingsConfig.Builder setRequestsPerSecond​(java.lang.Float docsPerSecond)
      Sets the docs per second that transform can use when pulling the data from the source index. This setting throttles transform by issuing queries less often, however processing still happens in batches. A value of 0 disables throttling (default).
      Parameters:
      docsPerSecond - Integer value
      Returns:
      the SettingsConfig.Builder with requestsPerSecond set.
    • build

      public SettingsConfig build()