Class TermsAggregation.Builder
java.lang.Object
co.elastic.clients.util.ObjectBuilderBase
co.elastic.clients.util.WithJsonObjectBuilderBase<BuilderT>
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:
WithJson<TermsAggregation.Builder>
,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
Methods inherited from class co.elastic.clients.elasticsearch._types.aggregations.AggregationBase.AbstractBuilder
meta, meta, name
Methods inherited from class co.elastic.clients.util.WithJsonObjectBuilderBase
withJson
Methods inherited from class co.elastic.clients.util.ObjectBuilderBase
_checkSingleUse, _listAdd, _listAddAll, _mapPut, _mapPutAll
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
public final TermsAggregation.Builder exclude(java.util.function.Function<TermsExclude.Builder,ObjectBuilder<TermsExclude>> fn)API name:exclude
-
executionHint
API name:execution_hint
-
field
API name:field
-
include
API name:include
-
include
public final TermsAggregation.Builder include(java.util.function.Function<TermsInclude.Builder,ObjectBuilder<TermsInclude>> fn)API name:include
-
minDocCount
API name:min_doc_count
-
missing
API name:missing
-
missing
public final TermsAggregation.Builder missing(java.util.function.Function<FieldValue.Builder,ObjectBuilder<FieldValue>> fn)API name:missing
-
missing
API name:missing
-
missing
API name:missing
-
missing
API name:missing
-
missing
API name:missing
-
missingOrder
API name:missing_order
-
missingBucket
API name:missing_bucket
-
valueType
API name:value_type
-
order
API name:order
Adds all elements of
list
toorder
. -
order
public final TermsAggregation.Builder order(NamedValue<SortOrder> value, NamedValue<SortOrder>... values)API name:order
Adds one or more values to
order
. -
script
API name:script
-
script
public final TermsAggregation.Builder script(java.util.function.Function<Script.Builder,ObjectBuilder<Script>> fn)API name:script
-
shardSize
API name:shard_size
-
showTermDocCountError
API name:show_term_doc_count_error
-
size
API name:size
-
format
API name:format
-
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.
-