pub struct CardinalityTrackingOperator { /* private fields */ }Expand description
A wrapper operator that tracks cardinality and reports to an adaptive context.
This wraps any PushOperator and counts the rows flowing through it,
reporting the count to the adaptive context.
Implementations§
Source§impl CardinalityTrackingOperator
impl CardinalityTrackingOperator
Sourcepub fn new(
inner: Box<dyn PushOperator>,
operator_id: &str,
context: SharedAdaptiveContext,
) -> Self
pub fn new( inner: Box<dyn PushOperator>, operator_id: &str, context: SharedAdaptiveContext, ) -> Self
Creates a new tracking wrapper.
Sourcepub fn current_count(&self) -> u64
pub fn current_count(&self) -> u64
Returns the current row count.
Trait Implementations§
Source§impl PushOperator for CardinalityTrackingOperator
impl PushOperator for CardinalityTrackingOperator
Source§fn push(
&mut self,
chunk: DataChunk,
sink: &mut dyn Sink,
) -> Result<bool, OperatorError>
fn push( &mut self, chunk: DataChunk, sink: &mut dyn Sink, ) -> Result<bool, OperatorError>
Process an incoming chunk and push results to the sink. Read more
Source§fn finalize(&mut self, sink: &mut dyn Sink) -> Result<(), OperatorError>
fn finalize(&mut self, sink: &mut dyn Sink) -> Result<(), OperatorError>
Called when all input has been processed. Read more
Source§fn preferred_chunk_size(&self) -> ChunkSizeHint
fn preferred_chunk_size(&self) -> ChunkSizeHint
Hint for preferred chunk size.
Auto Trait Implementations§
impl Freeze for CardinalityTrackingOperator
impl !RefUnwindSafe for CardinalityTrackingOperator
impl Send for CardinalityTrackingOperator
impl Sync for CardinalityTrackingOperator
impl Unpin for CardinalityTrackingOperator
impl !UnwindSafe for CardinalityTrackingOperator
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