Class PivotConfig.Builder

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

public static class PivotConfig.Builder
extends java.lang.Object
  • Constructor Details

    • Builder

      public Builder()
  • Method Details

    • setGroups

      public PivotConfig.Builder setGroups​(GroupConfig groups)
      Set how to group the source data
      Parameters:
      groups - The configuration describing how to group and pivot the source data
      Returns:
      the PivotConfig.Builder with the interval set.
    • setAggregationConfig

      public PivotConfig.Builder setAggregationConfig​(AggregationConfig aggregationConfig)
      Set the aggregated fields to include in the pivot config
      Parameters:
      aggregationConfig - The configuration describing the aggregated fields
      Returns:
      the PivotConfig.Builder with the aggregations set.
    • setAggregations

      public PivotConfig.Builder setAggregations​(org.elasticsearch.search.aggregations.AggregatorFactories.Builder aggregations)
      Set the aggregated fields to include in the pivot config
      Parameters:
      aggregations - The aggregated field builders
      Returns:
      the PivotConfig.Builder with the aggregations set.
    • setMaxPageSearchSize

      @Deprecated public PivotConfig.Builder setMaxPageSearchSize​(java.lang.Integer maxPageSearchSize)
      Deprecated.
      Sets the paging maximum paging maxPageSearchSize that date frame 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. Deprecated, use SettingsConfig.Builder.setMaxPageSearchSize(java.lang.Integer) instead
      Parameters:
      maxPageSearchSize - Integer value between 10 and 10_000
      Returns:
      the PivotConfig.Builder with the paging maxPageSearchSize set.
    • build

      public PivotConfig build()