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§
Sourcefn 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_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
Sourcefn 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_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
Sourcefn 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,
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