Class DateHistogramGroupSource.Builder
java.lang.Object
org.elasticsearch.client.transform.transforms.pivot.DateHistogramGroupSource.Builder
- Enclosing class:
- DateHistogramGroupSource
-
Constructor Summary
-
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.Builder
with the field set.
-
setScript
The script with which to construct the date histogram grouping- Parameters:
script
- The script- Returns:
- The
DateHistogramGroupSource.Builder
with the script set.
-
setInterval
Set the interval for the DateHistogram grouping- Parameters:
interval
- a fixed or calendar interval- Returns:
- the
DateHistogramGroupSource.Builder
with the interval set.
-
setTimeZone
Sets the time zone to use for this aggregation- Parameters:
timeZone
- The zoneId for the timeZone- Returns:
- The
DateHistogramGroupSource.Builder
with the timeZone set.
-
setMissingBucket
Sets the value of "missing_bucket"- Parameters:
missingBucket
- value of "missing_bucket" to be set- Returns:
- The
DateHistogramGroupSource.Builder
with "missing_bucket" set.
-
build
-