MCPcopy Create free account
hub / github.com/apache/datafusion / stats_iter

Method stats_iter

datafusion-cli/src/object_storage/instrumented.rs:683–689  ·  view source on GitHub ↗

Return an iterator over (duration_stats, size_stats) tuples for each summary

(
        &self,
    )

Source from the content-addressed store, hash-verified

681 /// Return an iterator over (duration_stats, size_stats) tuples
682 /// for each summary
683 fn stats_iter(
684 &self,
685 ) -> impl Iterator<Item = (Option<&Stats<Duration>>, Option<&Stats<usize>>)> {
686 self.summaries
687 .iter()
688 .map(|s| (s.duration_stats.as_ref(), s.size_stats.as_ref()))
689 }
690}
691
692/// Summary statistics for a particular type of [`Operation`] (e.g. `GET` or `PUT`)

Callers 1

to_batchMethod · 0.80

Calls 3

mapMethod · 0.45
iterMethod · 0.45
as_refMethod · 0.45

Tested by

no test coverage detected