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 TypeMethodDescriptionvoid
accept
(MultiBucketsAggregation.Bucket bucket) Adds aMultiBucketsAggregation.Bucket
for reduction.void
close()
get()
returns the reducedInternalAggregations
.long
returns the number of docs
-
Constructor Details
-
MultiBucketAggregatorsReducer
-
-
Method Details
-
accept
Adds aMultiBucketsAggregation.Bucket
for reduction. -
get
returns the reducedInternalAggregations
. -
getDocCount
public long getDocCount()returns the number of docs -
close
public void close()- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Specified by:
close
in interfaceReleasable
-