pub enum MetricType {
Summary,
Dev,
}Expand description
Categorizes metrics so the display layer can choose the desired verbosity.
The datafusion.explain.analyze_level configuration controls which
type is shown:
"dev"(the default): all metrics are shown."summary": only metrics tagged asSummaryare shown.
This is orthogonal to MetricCategory, which filters by what kind
of value a metric represents (rows / bytes / timing).
§Difference from EXPLAIN ANALYZE VERBOSE
The VERBOSE keyword controls whether per-partition metrics are shown
(when specified) or aggregated metrics are displayed (when omitted).
In contrast, MetricType determines which levels of metrics are
displayed.
Variants§
Summary
Common metrics for high-level insights (answering which operator is slow)
Dev
For deep operator-level introspection for developers
Implementations§
Source§impl MetricType
impl MetricType
Sourcepub fn included_types(self) -> Vec<MetricType>
pub fn included_types(self) -> Vec<MetricType>
Returns the set of metric types that should be shown for this level.
Dev is a superset of Summary: when the user selects
analyze_level = 'dev', both Summary and Dev metrics are shown.
Trait Implementations§
Source§impl Clone for MetricType
impl Clone for MetricType
Source§fn clone(&self) -> MetricType
fn clone(&self) -> MetricType
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl ConfigField for MetricType
impl ConfigField for MetricType
impl Copy for MetricType
Source§impl Debug for MetricType
impl Debug for MetricType
Source§impl Display for MetricType
impl Display for MetricType
impl Eq for MetricType
Source§impl FromStr for MetricType
impl FromStr for MetricType
Source§impl Hash for MetricType
impl Hash for MetricType
Source§impl PartialEq for MetricType
impl PartialEq for MetricType
Source§fn eq(&self, other: &MetricType) -> bool
fn eq(&self, other: &MetricType) -> bool
self and other values to be equal, and is used by ==.impl StructuralPartialEq for MetricType
Auto Trait Implementations§
impl Freeze for MetricType
impl RefUnwindSafe for MetricType
impl Send for MetricType
impl Sync for MetricType
impl Unpin for MetricType
impl UnsafeUnpin for MetricType
impl UnwindSafe for MetricType
Blanket Implementations§
impl<T> Allocation for T
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.