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 Summary
Constructors Constructor Description Builder()
-
Method Summary
Modifier and Type Method Description PivotConfig
build()
PivotConfig.Builder
setAggregationConfig(AggregationConfig aggregationConfig)
Set the aggregated fields to include in the pivot configPivotConfig.Builder
setAggregations(org.elasticsearch.search.aggregations.AggregatorFactories.Builder aggregations)
Set the aggregated fields to include in the pivot configPivotConfig.Builder
setGroups(GroupConfig groups)
Set how to group the source dataPivotConfig.Builder
setMaxPageSearchSize(java.lang.Integer maxPageSearchSize)
Deprecated.
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
setGroups
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
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.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, useSettingsConfig.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
-