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
-
Method Summary
Modifier and TypeMethodDescriptionvoid
accept
(InternalAggregations aggregations) Adds aInternalAggregations
for reduction.void
close()
get()
returns the reducedInternalAggregations
.
-
Constructor Details
-
AggregatorsReducer
-
-
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
-