Class SingleBucketAggregateBase.AbstractBuilder<BuilderT extends SingleBucketAggregateBase.AbstractBuilder<BuilderT>>
java.lang.Object
co.elastic.clients.util.ObjectBuilderBase
co.elastic.clients.util.WithJsonObjectBuilderBase<BuilderT>
co.elastic.clients.elasticsearch._types.aggregations.AggregateBase.AbstractBuilder<BuilderT>
co.elastic.clients.elasticsearch._types.aggregations.SingleBucketAggregateBase.AbstractBuilder<BuilderT>
- All Implemented Interfaces:
WithJson<BuilderT>
- Direct Known Subclasses:
ChildrenAggregate.Builder,FilterAggregate.Builder,GlobalAggregate.Builder,MissingAggregate.Builder,NestedAggregate.Builder,ParentAggregate.Builder,ReverseNestedAggregate.Builder,SamplerAggregate.Builder,UnmappedSamplerAggregate.Builder
- Enclosing class:
- SingleBucketAggregateBase
protected abstract static class SingleBucketAggregateBase.AbstractBuilder<BuilderT extends SingleBucketAggregateBase.AbstractBuilder<BuilderT>> extends AggregateBase.AbstractBuilder<BuilderT>
-
Field Summary
Fields Modifier and Type Field Description protected java.util.Map<java.lang.String,Aggregate>aggregations -
Constructor Summary
Constructors Modifier Constructor Description protectedAbstractBuilder() -
Method Summary
Modifier and Type Method Description BuilderTaggregations(java.lang.String key, Aggregate value)Nested aggregationsBuilderTaggregations(java.lang.String key, java.util.function.Function<Aggregate.Builder,ObjectBuilder<Aggregate>> fn)Nested aggregationsBuilderTaggregations(java.util.Map<java.lang.String,Aggregate> map)Nested aggregationsBuilderTdocCount(long value)Required - API name:doc_countMethods inherited from class co.elastic.clients.elasticsearch._types.aggregations.AggregateBase.AbstractBuilder
meta, meta, selfMethods inherited from class co.elastic.clients.util.WithJsonObjectBuilderBase
withJsonMethods inherited from class co.elastic.clients.util.ObjectBuilderBase
_checkSingleUse, _listAdd, _listAddAll, _mapPut, _mapPutAllMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Field Details
-
aggregations
-
-
Constructor Details
-
AbstractBuilder
protected AbstractBuilder()
-
-
Method Details
-
aggregations
Nested aggregationsAdds all entries of
maptoaggregations. -
aggregations
Nested aggregationsAdds an entry to
aggregations. -
aggregations
public final BuilderT aggregations(java.lang.String key, java.util.function.Function<Aggregate.Builder,ObjectBuilder<Aggregate>> fn)Nested aggregationsAdds an entry to
aggregationsusing a builder lambda. -
docCount
Required - API name:doc_count
-