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 TypeMethodDescriptionvoid
accept
(InternalAggregations aggregations) Adds aInternalAggregations
for reduction.void
close()
get()
returns the reducedInternalAggregations
.
-
Constructor Details
-
AggregatorsReducer
Solo constructor- Parameters:
proto
- The prototypeInternalAggregations
we are aggregating.context
- The aggregation contextsize
- The number ofInternalAggregations
we are aggregating.
-
-
Method Details
-
accept
Adds aInternalAggregations
for reduction. -
get
returns the reducedInternalAggregations
. -
close
public void close()- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Specified by:
close
in interfaceReleasable
-