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 groupingHistogramGroupSource.BuildersetMissingBucket(boolean missingBucket)Sets the value of "missing_bucket"HistogramGroupSource.BuildersetScript(org.elasticsearch.script.Script script)The script with which to construct the histogram groupingMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
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 grouping- 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.
-
setMissingBucket
Sets the value of "missing_bucket"- Parameters:
missingBucket- value of "missing_bucket" to be set- Returns:
- The
HistogramGroupSource.Builderwith "missing_bucket" set.
-
build
-