pub struct AdaptiveCheckpoint {
pub id: String,
pub after_operator: usize,
pub estimated_cardinality: f64,
pub actual_rows: u64,
pub triggered: bool,
}Expand description
A checkpoint during adaptive execution where plan switching can occur.
Checkpoints are placed at strategic points in the pipeline (typically after filters or joins) where switching to a new plan makes sense.
Fields§
§id: StringUnique identifier for this checkpoint.
after_operator: usizeOperator index in the pipeline (after which this checkpoint occurs).
estimated_cardinality: f64Estimated cardinality at this point.
actual_rows: u64Actual rows seen so far.
triggered: boolWhether this checkpoint has triggered re-optimization.
Implementations§
Source§impl AdaptiveCheckpoint
impl AdaptiveCheckpoint
Sourcepub fn record_rows(&mut self, count: u64)
pub fn record_rows(&mut self, count: u64)
Records rows passing through this checkpoint.
Sourcepub fn exceeds_threshold(&self, threshold: f64, min_rows: u64) -> bool
pub fn exceeds_threshold(&self, threshold: f64, min_rows: u64) -> bool
Checks if deviation exceeds threshold.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for AdaptiveCheckpoint
impl RefUnwindSafe for AdaptiveCheckpoint
impl Send for AdaptiveCheckpoint
impl Sync for AdaptiveCheckpoint
impl Unpin for AdaptiveCheckpoint
impl UnwindSafe for AdaptiveCheckpoint
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