Class DateHistogramGroupSource.Builder
java.lang.Object
org.elasticsearch.client.transform.transforms.pivot.DateHistogramGroupSource.Builder
- Enclosing class:
- DateHistogramGroupSource
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()The field with which to construct the date histogram groupingsetInterval(DateHistogramGroupSource.Interval interval) Set the interval for the DateHistogram groupingsetMissingBucket(boolean missingBucket) Sets the value of "missing_bucket"setScript(org.elasticsearch.script.Script script) The script with which to construct the date histogram groupingsetTimeZone(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.
-
setScript
The script with which to construct the date histogram grouping- Parameters:
script- The script- Returns:
- The
DateHistogramGroupSource.Builderwith the script 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.
-
setMissingBucket
Sets the value of "missing_bucket"- Parameters:
missingBucket- value of "missing_bucket" to be set- Returns:
- The
DateHistogramGroupSource.Builderwith "missing_bucket" set.
-
build
-