Struct datafusion::physical_plan::SQLMetric [−][src]
pub struct SQLMetric { /* fields omitted */ }
SQL metric such as counter (number of input or output rows) or timing information about a physical operator.
Implementations
impl SQLMetric
[src]
impl SQLMetric
[src]pub fn counter(name: &str) -> Arc<Mutex<SQLMetric>>
[src]
Create a new metric for tracking a counter
pub fn time_nanos(name: &str) -> Arc<Mutex<SQLMetric>>
[src]
Create a new metric for tracking time in nanoseconds
pub fn new(name: &str, metric_type: MetricType) -> Self
[src]
Create a new SQLMetric
pub fn add(&mut self, n: usize)
[src]
Add to the value
pub fn value(&self) -> usize
[src]
Get the current value
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for SQLMetric
impl RefUnwindSafe for SQLMetric
impl UnwindSafe for SQLMetric
impl UnwindSafe for SQLMetric