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 HistogramGroupSource
build()
HistogramGroupSource.Builder
setField(java.lang.String field)
The field to reference in the histogram groupingHistogramGroupSource.Builder
setInterval(double interval)
Set the interval for the histogram groupingHistogramGroupSource.Builder
setMissingBucket(boolean missingBucket)
Sets the value of "missing_bucket"HistogramGroupSource.Builder
setScript(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.Builder
with the field set.
-
setInterval
Set the interval for the histogram grouping- Parameters:
interval
- The numeric interval for the histogram grouping- Returns:
- The
HistogramGroupSource.Builder
with the interval set.
-
setScript
The script with which to construct the histogram grouping- Parameters:
script
- The script- Returns:
- The
HistogramGroupSource.Builder
with the script set.
-
setMissingBucket
Sets the value of "missing_bucket"- Parameters:
missingBucket
- value of "missing_bucket" to be set- Returns:
- The
HistogramGroupSource.Builder
with "missing_bucket" set.
-
build
-