pub struct AdvancedStatisticsCollector { /* private fields */ }Expand description
Advanced statistics collector with histogram support
Implementations§
Source§impl AdvancedStatisticsCollector
impl AdvancedStatisticsCollector
Sourcepub fn record_pattern_execution(
&self,
pattern: &AlgebraTriplePattern,
actual_cardinality: usize,
execution_time_ms: u64,
)
pub fn record_pattern_execution( &self, pattern: &AlgebraTriplePattern, actual_cardinality: usize, execution_time_ms: u64, )
Record execution of a triple pattern
Sourcepub fn estimate_cardinality(
&self,
pattern: &AlgebraTriplePattern,
) -> Option<usize>
pub fn estimate_cardinality( &self, pattern: &AlgebraTriplePattern, ) -> Option<usize>
Estimate cardinality for a pattern using histograms
Sourcepub fn record_join_execution(
&self,
_left_pattern: &GraphPattern,
_right_pattern: &GraphPattern,
left_cardinality: usize,
right_cardinality: usize,
result_cardinality: usize,
)
pub fn record_join_execution( &self, _left_pattern: &GraphPattern, _right_pattern: &GraphPattern, left_cardinality: usize, right_cardinality: usize, result_cardinality: usize, )
Record join execution for selectivity learning
Sourcepub fn estimate_join_selectivity(
&self,
left_card: usize,
right_card: usize,
) -> f64
pub fn estimate_join_selectivity( &self, left_card: usize, right_card: usize, ) -> f64
Estimate join selectivity
Sourcepub fn get_pattern_history(
&self,
pattern: &AlgebraTriplePattern,
) -> Vec<PatternExecution>
pub fn get_pattern_history( &self, pattern: &AlgebraTriplePattern, ) -> Vec<PatternExecution>
Get execution history for a pattern
Sourcepub fn get_statistics(&self) -> AdvancedStatistics
pub fn get_statistics(&self) -> AdvancedStatistics
Get overall statistics
Trait Implementations§
Source§impl Debug for AdvancedStatisticsCollector
impl Debug for AdvancedStatisticsCollector
Auto Trait Implementations§
impl !Freeze for AdvancedStatisticsCollector
impl RefUnwindSafe for AdvancedStatisticsCollector
impl Send for AdvancedStatisticsCollector
impl Sync for AdvancedStatisticsCollector
impl Unpin for AdvancedStatisticsCollector
impl UnsafeUnpin for AdvancedStatisticsCollector
impl UnwindSafe for AdvancedStatisticsCollector
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 more