Class SingleBucketAggregateBase.AbstractBuilder<BuilderT extends SingleBucketAggregateBase.AbstractBuilder<BuilderT>>
java.lang.Object
org.opensearch.client.util.ObjectBuilderBase
org.opensearch.client.opensearch._types.aggregations.AggregateBase.AbstractBuilder<BuilderT>
org.opensearch.client.opensearch._types.aggregations.SingleBucketAggregateBase.AbstractBuilder<BuilderT>
- Direct Known Subclasses:
ChildrenAggregate.Builder,FilterAggregate.Builder,GlobalAggregate.Builder,MissingAggregate.Builder,NestedAggregate.Builder,ParentAggregate.Builder,ReverseNestedAggregate.Builder,SamplerAggregate.Builder
- Enclosing class:
SingleBucketAggregateBase
public abstract static class SingleBucketAggregateBase.AbstractBuilder<BuilderT extends SingleBucketAggregateBase.AbstractBuilder<BuilderT>>
extends AggregateBase.AbstractBuilder<BuilderT>
-
Field Summary
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedprotectedprotected -
Method Summary
Modifier and TypeMethodDescriptionfinal BuilderTAdds a value toaggregationsusing a builder lambda.final BuilderTaggregations(String key, Aggregate value) Adds an entry toaggregations.final BuilderTaggregations(Map<String, Aggregate> map) Adds all elements ofmaptoaggregations.final BuilderTdocCount(long value) Required - API name:doc_countMethods inherited from class org.opensearch.client.opensearch._types.aggregations.AggregateBase.AbstractBuilder
meta, meta, selfMethods inherited from class org.opensearch.client.util.ObjectBuilderBase
_checkSingleUse, _listAdd, _listAddAll, _listCopy, _mapCopy, _mapPut, _mapPutAll
-
Field Details
-
aggregations
-
-
Constructor Details
-
AbstractBuilder
protected AbstractBuilder() -
AbstractBuilder
-
AbstractBuilder
-
-
Method Details
-
aggregations
Adds all elements of
maptoaggregations. -
aggregations
Adds an entry to
aggregations. -
aggregations
@Nonnull public final BuilderT aggregations(String key, Function<Aggregate.Builder, ObjectBuilder<Aggregate>> fn) Adds a value to
aggregationsusing a builder lambda. -
docCount
Required - API name:doc_count
-