Trait tidb_query_executors::interface::ExecSummaryCollector [−][src]
A trait for all execution summary collectors.
Associated Types
Loading content...Required methods
pub fn new(output_index: usize) -> Self
[src]
Creates a new instance with specified output slot index.
pub fn on_start_iterate(&mut self) -> Self::DurationRecorder
[src]
Returns an instance that will record elapsed duration and increase
the iterations counter. The instance should be later passed back to
on_finish_iterate
when processing of next_batch
is completed.
pub fn on_finish_iterate(&mut self, dr: Self::DurationRecorder, rows: usize)
[src]
pub fn collect(&mut self, target: &mut [ExecSummary])
[src]
Takes and appends current execution summary into target
.
Implementations on Foreign Types
impl ExecSummaryCollector for ExecSummaryCollectorDisabled
[src]
type DurationRecorder = ()
pub fn new(_output_index: usize) -> ExecSummaryCollectorDisabled
[src]
pub fn on_start_iterate(
&mut self
) -> <ExecSummaryCollectorDisabled as ExecSummaryCollector>::DurationRecorder
[src]
&mut self
) -> <ExecSummaryCollectorDisabled as ExecSummaryCollector>::DurationRecorder
pub fn on_finish_iterate(
&mut self,
_dr: <ExecSummaryCollectorDisabled as ExecSummaryCollector>::DurationRecorder,
_rows: usize
)
[src]
&mut self,
_dr: <ExecSummaryCollectorDisabled as ExecSummaryCollector>::DurationRecorder,
_rows: usize
)
pub fn collect(&mut self, _target: &mut [ExecSummary])
[src]
impl ExecSummaryCollector for ExecSummaryCollectorEnabled
[src]
type DurationRecorder = Instant
pub fn new(output_index: usize) -> ExecSummaryCollectorEnabled
[src]
pub fn on_start_iterate(
&mut self
) -> <ExecSummaryCollectorEnabled as ExecSummaryCollector>::DurationRecorder
[src]
&mut self
) -> <ExecSummaryCollectorEnabled as ExecSummaryCollector>::DurationRecorder
pub fn on_finish_iterate(
&mut self,
dr: <ExecSummaryCollectorEnabled as ExecSummaryCollector>::DurationRecorder,
rows: usize
)
[src]
&mut self,
dr: <ExecSummaryCollectorEnabled as ExecSummaryCollector>::DurationRecorder,
rows: usize
)