expose IntermediateAggregationResults->into_final_bucket_result

This commit is contained in:
Evance Soumaoro
2022-07-21 11:19:23 +00:00
parent 775e936f7d
commit f26b686a1c

View File

@@ -36,10 +36,7 @@ pub struct IntermediateAggregationResults {
impl IntermediateAggregationResults {
/// Convert intermediate result and its aggregation request to the final result.
pub(crate) fn into_final_bucket_result(
self,
req: Aggregations,
) -> crate::Result<AggregationResults> {
pub fn into_final_bucket_result(self, req: Aggregations) -> crate::Result<AggregationResults> {
self.into_final_bucket_result_internal(&(req.into()))
}