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 HistogramGroupSourcebuild()HistogramGroupSource.BuildersetField(java.lang.String field)The field to reference in the histogram groupingHistogramGroupSource.BuildersetInterval(double interval)Set the interval for the histogram aggregationHistogramGroupSource.BuildersetScript(org.elasticsearch.script.Script script)The script with which to construct the histogram grouping
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
setField
The field to reference in the histogram grouping- Parameters:
field- The numeric field name to use in the histogram grouping- Returns:
- The
HistogramGroupSource.Builderwith the field set.
-
setInterval
Set the interval for the histogram aggregation- Parameters:
interval- The numeric interval for the histogram grouping- Returns:
- The
HistogramGroupSource.Builderwith the interval set.
-
setScript
The script with which to construct the histogram grouping- Parameters:
script- The script- Returns:
- The
HistogramGroupSource.Builderwith the script set.
-
build
-