Interface SingleBucketAggregation
- All Superinterfaces:
Aggregation,HasAggregations,ToXContent,ToXContentFragment
- All Known Implementing Classes:
InternalFilter,InternalGlobal,InternalMissing,InternalNested,InternalReverseNested,InternalSampler,InternalSingleBucketAggregation,ParsedFilter,ParsedGlobal,ParsedMissing,ParsedNested,ParsedReverseNested,ParsedSampler,ParsedSingleBucketAggregation,UnmappedSampler
public interface SingleBucketAggregation extends Aggregation, HasAggregations
A single bucket aggregation
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.elasticsearch.search.aggregations.Aggregation
Aggregation.CommonFieldsNested classes/interfaces inherited from interface org.elasticsearch.common.xcontent.ToXContent
ToXContent.DelegatingMapParams, ToXContent.MapParams, ToXContent.Params -
Field Summary
Fields inherited from interface org.elasticsearch.search.aggregations.Aggregation
TYPED_KEYS_DELIMITER -
Method Summary
Modifier and Type Method Description AggregationsgetAggregations()longgetDocCount()Methods inherited from interface org.elasticsearch.search.aggregations.Aggregation
getMetaData, getName, getType
-
Method Details
-
getDocCount
long getDocCount()- Returns:
- The number of documents in this bucket
-
getAggregations
Aggregations getAggregations()- Specified by:
getAggregationsin interfaceHasAggregations- Returns:
- The sub-aggregations of this bucket
-