Class PivotConfig.Builder
- java.lang.Object
-
- org.elasticsearch.client.dataframe.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 PivotConfigbuild()PivotConfig.BuildersetAggregationConfig(AggregationConfig aggregationConfig)Set the aggregated fields to include in the pivot configPivotConfig.BuildersetAggregations(AggregatorFactories.Builder aggregations)Set the aggregated fields to include in the pivot configPivotConfig.BuildersetGroups(GroupConfig groups)Set how to group the source dataPivotConfig.BuildersetMaxPageSearchSize(java.lang.Integer maxPageSearchSize)Sets the paging maximum paging maxPageSearchSize that date frame transform can use when pulling the data from the source index.
-
-
-
Method Detail
-
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.Builderwith 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.Builderwith the aggregations set.
-
setAggregations
public PivotConfig.Builder setAggregations(AggregatorFactories.Builder aggregations)
Set the aggregated fields to include in the pivot config- Parameters:
aggregations- The aggregated field builders- Returns:
- the
PivotConfig.Builderwith the aggregations set.
-
setMaxPageSearchSize
public PivotConfig.Builder setMaxPageSearchSize(java.lang.Integer maxPageSearchSize)
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.- Parameters:
maxPageSearchSize- Integer value between 10 and 10_000- Returns:
- the
PivotConfig.Builderwith the paging maxPageSearchSize set.
-
build
public PivotConfig build()
-
-