pub trait StoreStrategy: Send + Sync {
// Required methods
fn name(&self) -> &str;
fn indexes(&self) -> &[IndexType];
fn index_on_add(&self) -> bool;
fn select_index(&self, pattern: PatternType) -> IndexType;
fn estimate_cost(&self, pattern: PatternType) -> f64;
}Expand description
Store strategy trait
Required Methods§
Sourcefn index_on_add(&self) -> bool
fn index_on_add(&self) -> bool
Should index on add?
Sourcefn select_index(&self, pattern: PatternType) -> IndexType
fn select_index(&self, pattern: PatternType) -> IndexType
Select best index for pattern
Sourcefn estimate_cost(&self, pattern: PatternType) -> f64
fn estimate_cost(&self, pattern: PatternType) -> f64
Get estimated cost for pattern with this strategy