pub struct Statistics { /* private fields */ }Expand description
Statistics manager for query optimization
Implementations§
Source§impl Statistics
impl Statistics
Sourcepub fn update_table_stats(&self, table_name: String, stats: TableStats)
pub fn update_table_stats(&self, table_name: String, stats: TableStats)
Update table statistics
Sourcepub fn get_table_stats(&self, table_name: &str) -> Option<TableStats>
pub fn get_table_stats(&self, table_name: &str) -> Option<TableStats>
Get table statistics
Sourcepub fn update_column_stats(&self, column_key: String, stats: ColumnStats)
pub fn update_column_stats(&self, column_key: String, stats: ColumnStats)
Update column statistics
Sourcepub fn get_column_stats(&self, column_key: &str) -> Option<ColumnStats>
pub fn get_column_stats(&self, column_key: &str) -> Option<ColumnStats>
Get column statistics
Sourcepub fn estimate_join_selectivity(
&self,
left_table: &str,
right_table: &str,
join_column: &str,
) -> f64
pub fn estimate_join_selectivity( &self, left_table: &str, right_table: &str, join_column: &str, ) -> f64
Estimate join selectivity
Sourcepub fn estimate_filter_selectivity(
&self,
column_key: &str,
operator: &str,
) -> f64
pub fn estimate_filter_selectivity( &self, column_key: &str, operator: &str, ) -> f64
Estimate filter selectivity
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for Statistics
impl RefUnwindSafe for Statistics
impl Send for Statistics
impl Sync for Statistics
impl Unpin for Statistics
impl UnwindSafe for Statistics
Blanket Implementations§
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
Mutably borrows from an owned value. Read more
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request