Skip to content

add intermediate result accessors#2829

Merged
trinity-1686a merged 4 commits intomainfrom
cong.xie/add-intermediate-accessors
Feb 10, 2026
Merged

add intermediate result accessors#2829
trinity-1686a merged 4 commits intomainfrom
cong.xie/add-intermediate-accessors

Conversation

@congx4
Copy link
Collaborator

@congx4 congx4 commented Feb 6, 2026

add intermediate result accessors in order to group multi steps queries in upstream.

…results

Add accessor methods to allow external crates to read intermediate
aggregation results without accessing pub(crate) fields:

- IntermediateAggregationResults: get(), get_mut(), remove()
- IntermediateTermBucketResult: entries(), sum_other_doc_count(), doc_count_error_upper_bound()
- IntermediateAverage: stats()
- IntermediateStats: count(), sum()
- IntermediateKey: Display impl for string conversion
…results

Add accessor methods to allow external crates to read intermediate
aggregation results without accessing pub(crate) fields:

- IntermediateAggregationResults: get(), remove()
- IntermediateTermBucketResult: entries(), sum_other_doc_count(), doc_count_error_upper_bound()
- IntermediateAverage: stats()
- IntermediateStats: count(), sum()
- IntermediateKey: Display impl for string conversion
Self { stats }
}

pub fn stats(&self) -> &IntermediateStats {
Copy link
Collaborator

@PSeitz PSeitz Feb 6, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

missing documentation

@congx4 congx4 force-pushed the cong.xie/add-intermediate-accessors branch from 8d9d72a to f1c29ba Compare February 6, 2026 19:23
@trinity-1686a trinity-1686a merged commit 6bf185d into main Feb 10, 2026
8 checks passed
@trinity-1686a trinity-1686a deleted the cong.xie/add-intermediate-accessors branch February 10, 2026 16:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants