Class TermsGroupSource.Builder
java.lang.Object
org.elasticsearch.client.transform.transforms.pivot.TermsGroupSource.Builder
- Enclosing class:
- TermsGroupSource
public static class TermsGroupSource.Builder
extends java.lang.Object
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
Modifier and Type Method Description TermsGroupSource
build()
TermsGroupSource.Builder
setField(java.lang.String field)
The field with which to construct the terms groupingTermsGroupSource.Builder
setMissingBucket(boolean missingBucket)
Sets the value of "missing_bucket"TermsGroupSource.Builder
setScript(org.elasticsearch.script.Script script)
The script with which to construct the terms 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 with which to construct the terms grouping- Parameters:
field
- The field name- Returns:
- The
TermsGroupSource.Builder
with the field set.
-
setScript
The script with which to construct the terms grouping- Parameters:
script
- The script- Returns:
- The
TermsGroupSource.Builder
with the script set.
-
setMissingBucket
Sets the value of "missing_bucket"- Parameters:
missingBucket
- value of "missing_bucket" to be set- Returns:
- The
TermsGroupSource.Builder
with "missing_bucket" set.
-
build
-