Class HistogramGroupSource.Builder
- java.lang.Object
-
- org.elasticsearch.client.dataframe.transforms.pivot.HistogramGroupSource.Builder
-
- Enclosing class:
- HistogramGroupSource
public static class HistogramGroupSource.Builder extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
Modifier and Type Method Description HistogramGroupSourcebuild()HistogramGroupSource.BuildersetField(java.lang.String field)The field to reference in the histogram groupingHistogramGroupSource.BuildersetInterval(double interval)Set the interval for the histogram aggregation
-
-
-
Method Detail
-
setField
public HistogramGroupSource.Builder setField(java.lang.String field)
The field to reference in the histogram grouping- Parameters:
field- The numeric field name to use in the histogram grouping- Returns:
- The
HistogramGroupSource.Builderwith the field set.
-
setInterval
public HistogramGroupSource.Builder setInterval(double interval)
Set the interval for the histogram aggregation- Parameters:
interval- The numeric interval for the histogram grouping- Returns:
- The
HistogramGroupSource.Builderwith the interval set.
-
build
public HistogramGroupSource build()
-
-