pub struct CardinalityTrackingWrapper { /* private fields */ }Expand description
A wrapper that tracks cardinality for pull-based operators.
This wraps any Operator and counts the rows flowing through it,
reporting the count to the adaptive context. Use this for integrating
adaptive execution with the standard pull-based executor.
Implementations§
Source§impl CardinalityTrackingWrapper
impl CardinalityTrackingWrapper
Sourcepub fn new(
inner: Box<dyn Operator>,
operator_id: &str,
context: SharedAdaptiveContext,
) -> Self
pub fn new( inner: Box<dyn Operator>, operator_id: &str, context: SharedAdaptiveContext, ) -> Self
Creates a new tracking wrapper for a pull-based operator.
Sourcepub fn current_count(&self) -> u64
pub fn current_count(&self) -> u64
Returns the current row count.
Trait Implementations§
Source§impl Drop for CardinalityTrackingWrapper
impl Drop for CardinalityTrackingWrapper
Auto Trait Implementations§
impl Freeze for CardinalityTrackingWrapper
impl !RefUnwindSafe for CardinalityTrackingWrapper
impl Send for CardinalityTrackingWrapper
impl Sync for CardinalityTrackingWrapper
impl Unpin for CardinalityTrackingWrapper
impl !UnwindSafe for CardinalityTrackingWrapper
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