Module org.elasticsearch.server
Class MultiBucketAggregatorsReducer
java.lang.Object
org.elasticsearch.search.aggregations.bucket.MultiBucketAggregatorsReducer
- All Implemented Interfaces:
Closeable,AutoCloseable,Releasable
Class for reducing a list of
MultiBucketsAggregation.Bucket to a single
InternalAggregations and the number of documents.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaccept(MultiBucketsAggregation.Bucket bucket) Adds aMultiBucketsAggregation.Bucketfor reduction.voidclose()get()returns the reducedInternalAggregations.longreturns the number of docs
-
Constructor Details
-
MultiBucketAggregatorsReducer
-
-
Method Details
-
accept
Adds aMultiBucketsAggregation.Bucketfor reduction. -
get
returns the reducedInternalAggregations. -
getDocCount
public long getDocCount()returns the number of docs -
close
public void close()- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Specified by:
closein interfaceReleasable
-