Module org.elasticsearch.server
Class AggregatorsReducer
java.lang.Object
org.elasticsearch.search.aggregations.AggregatorsReducer
- All Implemented Interfaces:
Closeable,AutoCloseable,Releasable
Interface for reducing
InternalAggregations to a single one in a streaming fashion.-
Constructor Summary
ConstructorsConstructorDescriptionAggregatorsReducer(InternalAggregations proto, AggregationReduceContext context, int size) Solo constructor -
Method Summary
Modifier and TypeMethodDescriptionvoidaccept(InternalAggregations aggregations) Adds aInternalAggregationsfor reduction.voidclose()get()returns the reducedInternalAggregations.
-
Constructor Details
-
AggregatorsReducer
Solo constructor- Parameters:
proto- The prototypeInternalAggregationswe are aggregating.context- The aggregation contextsize- The number ofInternalAggregationswe are aggregating.
-
-
Method Details
-
accept
Adds aInternalAggregationsfor reduction. -
get
returns the reducedInternalAggregations. -
close
public void close()- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Specified by:
closein interfaceReleasable
-