pub trait StatsCollector: Send + Sync {
// Required methods
fn start(&self, partition: usize, plan: &Arc<dyn ExecutionPlan>);
fn stop(&self, partition: usize, plan: &Arc<dyn ExecutionPlan>);
}Expand description
A trait to collect stats for the execution plan.
The server calls start right before polling the stream,
and calls stop right after exhausting the stream.
Required Methods§
Sourcefn start(&self, partition: usize, plan: &Arc<dyn ExecutionPlan>)
fn start(&self, partition: usize, plan: &Arc<dyn ExecutionPlan>)
Start the stats collector.
Sourcefn stop(&self, partition: usize, plan: &Arc<dyn ExecutionPlan>)
fn stop(&self, partition: usize, plan: &Arc<dyn ExecutionPlan>)
Stop the stats collector.