Merge pull request #1419 from quickwit-oss/expose-final-bucket-result

Re(Expose) IntermediateAggregationResults method
This commit is contained in:
PSeitz
2022-07-21 04:40:23 -07:00
committed by GitHub

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()))
}