Module org.elasticsearch.server
Interface AggregatorReducer
- All Superinterfaces:
AutoCloseable
,Closeable
,Releasable
Interface for reducing aggregations to a single one.
-
Method Summary
Modifier and TypeMethodDescriptionvoid
accept
(InternalAggregation aggregation) Adds an aggregation for reduction.default void
close()
get()
returns the final aggregation.
-
Method Details
-
accept
Adds an aggregation for reduction. In most cases, the assumption will be the all given aggregations are of the same type (the same type as this aggregation). -
get
InternalAggregation get()returns the final aggregation. -
close
default void close()- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Specified by:
close
in interfaceReleasable
-