pub struct StatsSnapshot {
pub relations: Vec<RelationStats>,
pub join_selectivities: Vec<JoinSelectivity>,
pub rel_names: Vec<(RelId, String)>,
}Expand description
Serializable snapshot of collected statistics.
This is intended for feeding runtime observations back into the compiler/optimizer.
Fields§
§relations: Vec<RelationStats>Per-relation statistics.
join_selectivities: Vec<JoinSelectivity>Cached join selectivity models.
rel_names: Vec<(RelId, String)>Optional mapping from runtime RelId to predicate name.
When present, consumers should prefer this over raw RelId matching to avoid
misapplying statistics across different programs where RelIds may be reused.
Trait Implementations§
Source§impl Clone for StatsSnapshot
impl Clone for StatsSnapshot
Source§fn clone(&self) -> StatsSnapshot
fn clone(&self) -> StatsSnapshot
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 StatsSnapshot
impl Debug for StatsSnapshot
Source§impl Default for StatsSnapshot
impl Default for StatsSnapshot
Source§fn default() -> StatsSnapshot
fn default() -> StatsSnapshot
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for StatsSnapshot
impl RefUnwindSafe for StatsSnapshot
impl Send for StatsSnapshot
impl Sync for StatsSnapshot
impl Unpin for StatsSnapshot
impl UnsafeUnpin for StatsSnapshot
impl UnwindSafe for StatsSnapshot
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