Class HistogramGroupSource.Builder
- java.lang.Object
-
- org.elasticsearch.client.transform.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 HistogramGroupSource
build()
HistogramGroupSource.Builder
setField(java.lang.String field)
The field to reference in the histogram groupingHistogramGroupSource.Builder
setInterval(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.Builder
with 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.Builder
with the interval set.
-
build
public HistogramGroupSource build()
-
-