pub struct CardinalityTrackingSink { /* private fields */ }Expand description
A sink that tracks cardinality of data flowing through it.
Implementations§
Source§impl CardinalityTrackingSink
impl CardinalityTrackingSink
Sourcepub fn new(
inner: Box<dyn Sink>,
operator_id: &str,
context: SharedAdaptiveContext,
) -> Self
pub fn new( inner: Box<dyn Sink>, operator_id: &str, context: SharedAdaptiveContext, ) -> Self
Creates a new tracking sink wrapper.
Sourcepub fn current_count(&self) -> u64
pub fn current_count(&self) -> u64
Returns the current row count.
Trait Implementations§
Source§impl Sink for CardinalityTrackingSink
impl Sink for CardinalityTrackingSink
Auto Trait Implementations§
impl Freeze for CardinalityTrackingSink
impl !RefUnwindSafe for CardinalityTrackingSink
impl Send for CardinalityTrackingSink
impl Sync for CardinalityTrackingSink
impl Unpin for CardinalityTrackingSink
impl !UnwindSafe for CardinalityTrackingSink
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