Class DateHistogramGroupSource.Builder
- java.lang.Object
-
- org.elasticsearch.client.transform.transforms.pivot.DateHistogramGroupSource.Builder
-
- Enclosing class:
- DateHistogramGroupSource
public static class DateHistogramGroupSource.Builder extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
Modifier and Type Method Description DateHistogramGroupSource
build()
DateHistogramGroupSource.Builder
setField(java.lang.String field)
The field with which to construct the date histogram groupingDateHistogramGroupSource.Builder
setInterval(DateHistogramGroupSource.Interval interval)
Set the interval for the DateHistogram groupingDateHistogramGroupSource.Builder
setTimeZone(java.time.ZoneId timeZone)
Sets the time zone to use for this aggregation
-
-
-
Method Detail
-
setField
public DateHistogramGroupSource.Builder setField(java.lang.String field)
The field with which to construct the date histogram grouping- Parameters:
field
- The field name- Returns:
- The
DateHistogramGroupSource.Builder
with the field set.
-
setInterval
public DateHistogramGroupSource.Builder setInterval(DateHistogramGroupSource.Interval interval)
Set the interval for the DateHistogram grouping- Parameters:
interval
- a fixed or calendar interval- Returns:
- the
DateHistogramGroupSource.Builder
with the interval set.
-
setTimeZone
public DateHistogramGroupSource.Builder setTimeZone(java.time.ZoneId timeZone)
Sets the time zone to use for this aggregation- Parameters:
timeZone
- The zoneId for the timeZone- Returns:
- The
DateHistogramGroupSource.Builder
with the timeZone set.
-
build
public DateHistogramGroupSource build()
-
-