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 DateHistogramGroupSourcebuild()DateHistogramGroupSource.BuildersetField(java.lang.String field)The field with which to construct the date histogram groupingDateHistogramGroupSource.BuildersetInterval(DateHistogramGroupSource.Interval interval)Set the interval for the DateHistogram groupingDateHistogramGroupSource.BuildersetTimeZone(java.time.ZoneId timeZone)Sets the time zone to use for this aggregation
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
setField
The field with which to construct the date histogram grouping- Parameters:
field- The field name- Returns:
- The
DateHistogramGroupSource.Builderwith the field set.
-
setInterval
Set the interval for the DateHistogram grouping- Parameters:
interval- a fixed or calendar interval- Returns:
- the
DateHistogramGroupSource.Builderwith the interval set.
-
setTimeZone
Sets the time zone to use for this aggregation- Parameters:
timeZone- The zoneId for the timeZone- Returns:
- The
DateHistogramGroupSource.Builderwith the timeZone set.
-
build
-