Class TermsAggregation.Builder
java.lang.Object
co.elastic.clients.elasticsearch._types.aggregations.AggregationBase.AbstractBuilder<BuilderT>
co.elastic.clients.elasticsearch._types.aggregations.BucketAggregationBase.AbstractBuilder<TermsAggregation.Builder>
co.elastic.clients.elasticsearch._types.aggregations.TermsAggregation.Builder
- All Implemented Interfaces:
ObjectBuilder<TermsAggregation>
- Enclosing class:
- TermsAggregation
public static class TermsAggregation.Builder extends BucketAggregationBase.AbstractBuilder<TermsAggregation.Builder> implements ObjectBuilder<TermsAggregation>
Builder for
TermsAggregation
.-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
Modifier and Type Method Description TermsAggregation.Builder
addExclude(java.lang.String value)
Add a value toexclude(List)
, creating the list if needed.TermsAggregation
build()
Builds aTermsAggregation
.TermsAggregation.Builder
collectMode(TermsAggregationCollectMode value)
API name:collect_mode
TermsAggregation.Builder
exclude(java.lang.String... value)
API name:exclude
TermsAggregation.Builder
exclude(java.util.List<java.lang.String> value)
API name:exclude
TermsAggregation.Builder
executionHint(TermsAggregationExecutionHint value)
API name:execution_hint
TermsAggregation.Builder
field(java.lang.String value)
API name:field
TermsAggregation.Builder
include(jakarta.json.JsonValue value)
API name:include
TermsAggregation.Builder
minDocCount(java.lang.Integer value)
API name:min_doc_count
TermsAggregation.Builder
missing(java.lang.String value)
API name:missing
TermsAggregation.Builder
missingBucket(java.lang.Boolean value)
API name:missing_bucket
TermsAggregation.Builder
order(jakarta.json.JsonValue value)
API name:order
TermsAggregation.Builder
script(jakarta.json.JsonValue value)
API name:script
protected TermsAggregation.Builder
self()
TermsAggregation.Builder
shardSize(java.lang.Integer value)
API name:shard_size
TermsAggregation.Builder
showTermDocCountError(java.lang.Boolean value)
API name:show_term_doc_count_error
TermsAggregation.Builder
size(java.lang.Integer value)
API name:size
TermsAggregation.Builder
valueType(java.lang.String value)
API name:value_type
Methods inherited from class co.elastic.clients.elasticsearch._types.aggregations.BucketAggregationBase.AbstractBuilder
aggregations, aggregations, putAggregations, putAggregations
Methods inherited from class co.elastic.clients.elasticsearch._types.aggregations.AggregationBase.AbstractBuilder
meta, name, putMeta
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
collectMode
API name:collect_mode
-
exclude
API name:exclude
-
exclude
API name:exclude
-
addExclude
Add a value toexclude(List)
, creating the list if needed. -
executionHint
API name:execution_hint
-
field
API name:field
-
include
API name:include
-
minDocCount
API name:min_doc_count
-
missing
API name:missing
-
missingBucket
API name:missing_bucket
-
valueType
API name:value_type
-
order
API name:order
-
script
API name:script
-
shardSize
API name:shard_size
-
showTermDocCountError
API name:show_term_doc_count_error
-
size
API name:size
-
self
- Specified by:
self
in classAggregationBase.AbstractBuilder<TermsAggregation.Builder>
-
build
Builds aTermsAggregation
.- Specified by:
build
in interfaceObjectBuilder<TermsAggregation>
- Throws:
java.lang.NullPointerException
- if some of the required fields are null.
-