pub struct CostModelConfig {
pub scan: f64,
pub filter: f64,
pub projection: f64,
pub join: f64,
pub sort: f64,
pub aggregate: f64,
pub limit: f64,
pub derived: f64,
pub dml: f64,
pub join_hash_multiplier: f64,
pub join_nested_multiplier: f64,
pub max_cost: f64,
}Fields§
§scan: f64§filter: f64§projection: f64§join: f64§sort: f64§aggregate: f64§limit: f64§derived: f64§dml: f64§join_hash_multiplier: f64§join_nested_multiplier: f64§max_cost: f64Implementations§
Source§impl CostModelConfig
impl CostModelConfig
pub const PARAM_SCAN: &'static str = "optimizer.cost.scan"
pub const PARAM_FILTER: &'static str = "optimizer.cost.filter"
pub const PARAM_PROJECTION: &'static str = "optimizer.cost.projection"
pub const PARAM_JOIN: &'static str = "optimizer.cost.join"
pub const PARAM_SORT: &'static str = "optimizer.cost.sort"
pub const PARAM_AGGREGATE: &'static str = "optimizer.cost.aggregate"
pub const PARAM_LIMIT: &'static str = "optimizer.cost.limit"
pub const PARAM_DERIVED: &'static str = "optimizer.cost.derived"
pub const PARAM_DML: &'static str = "optimizer.cost.dml"
pub const PARAM_JOIN_HASH_MULTIPLIER: &'static str = "optimizer.cost.join_hash_multiplier"
pub const PARAM_JOIN_NESTED_MULTIPLIER: &'static str = "optimizer.cost.join_nested_multiplier"
pub const PARAM_MAX_COST: &'static str = "optimizer.cost.max_cost"
pub fn load_from_path(path: impl AsRef<Path>) -> ChrysoResult<Self>
pub fn validate(&self) -> ChrysoResult<()>
pub fn apply_system_params( &self, registry: &SystemParamRegistry, tenant: Option<&str>, ) -> Self
Trait Implementations§
Source§impl Clone for CostModelConfig
impl Clone for CostModelConfig
Source§fn clone(&self) -> CostModelConfig
fn clone(&self) -> CostModelConfig
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for CostModelConfig
impl Debug for CostModelConfig
Source§impl Default for CostModelConfig
impl Default for CostModelConfig
Source§impl<'de> Deserialize<'de> for CostModelConfigwhere
CostModelConfig: Default,
impl<'de> Deserialize<'de> for CostModelConfigwhere
CostModelConfig: Default,
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for CostModelConfig
impl RefUnwindSafe for CostModelConfig
impl Send for CostModelConfig
impl Sync for CostModelConfig
impl Unpin for CostModelConfig
impl UnwindSafe for CostModelConfig
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