StatisticsProvider

Trait StatisticsProvider 

Source
pub trait StatisticsProvider: Send + Sync {
    // Required methods
    fn get_selectivity<'life0, 'life1, 'async_trait>(
        &'life0 self,
        filter: &'life1 BooleanExpression,
    ) -> Pin<Box<dyn Future<Output = Result<f64>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait;
    fn get_vertex_cardinality<'life0, 'life1, 'async_trait>(
        &'life0 self,
        pattern: &'life1 VertexPattern,
    ) -> Pin<Box<dyn Future<Output = Result<u64>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait;
    fn get_edge_cardinality<'life0, 'life1, 'async_trait>(
        &'life0 self,
        pattern: &'life1 EdgePattern,
    ) -> Pin<Box<dyn Future<Output = Result<u64>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait;
}
Expand description

Statistics for optimization

Required Methods§

Source

fn get_selectivity<'life0, 'life1, 'async_trait>( &'life0 self, filter: &'life1 BooleanExpression, ) -> Pin<Box<dyn Future<Output = Result<f64>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Get the selectivity of a filter

Source

fn get_vertex_cardinality<'life0, 'life1, 'async_trait>( &'life0 self, pattern: &'life1 VertexPattern, ) -> Pin<Box<dyn Future<Output = Result<u64>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Get the cardinality of a vertex pattern

Source

fn get_edge_cardinality<'life0, 'life1, 'async_trait>( &'life0 self, pattern: &'life1 EdgePattern, ) -> Pin<Box<dyn Future<Output = Result<u64>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Get the cardinality of an edge pattern

Implementors§