pub struct BreakerExecutor { /* private fields */ }Expand description
Executes a Ring 1 stateful operator at a pipeline boundary.
Wraps a Ring1Operator with the breaker metadata and tracks
per-executor statistics.
Implementations§
Source§impl BreakerExecutor
impl BreakerExecutor
Sourcepub fn new(breaker: PipelineBreaker, operator: Box<dyn Ring1Operator>) -> Self
pub fn new(breaker: PipelineBreaker, operator: Box<dyn Ring1Operator>) -> Self
Creates a new executor for the given breaker and operator.
Sourcepub fn process(&mut self, batch: RecordBatch) -> Vec<RecordBatch>
pub fn process(&mut self, batch: RecordBatch) -> Vec<RecordBatch>
Processes a batch from the upstream compiled segment.
Returns any output batches ready for the downstream segment.
Sourcepub fn advance_watermark(&mut self, timestamp: i64) -> Vec<RecordBatch>
pub fn advance_watermark(&mut self, timestamp: i64) -> Vec<RecordBatch>
Advances the watermark through the operator.
Sourcepub fn breaker(&self) -> &PipelineBreaker
pub fn breaker(&self) -> &PipelineBreaker
Returns the breaker type.
Sourcepub fn output_schema(&self) -> SchemaRef
pub fn output_schema(&self) -> SchemaRef
Returns the output schema of the operator.
Sourcepub fn batches_in(&self) -> u64
pub fn batches_in(&self) -> u64
Returns the number of input batches processed.
Sourcepub fn batches_out(&self) -> u64
pub fn batches_out(&self) -> u64
Returns the number of output batches emitted.
Sourcepub fn checkpoint(&self) -> Vec<u8> ⓘ
pub fn checkpoint(&self) -> Vec<u8> ⓘ
Checkpoints the operator state.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for BreakerExecutor
impl !RefUnwindSafe for BreakerExecutor
impl Send for BreakerExecutor
impl !Sync for BreakerExecutor
impl Unpin for BreakerExecutor
impl UnsafeUnpin for BreakerExecutor
impl !UnwindSafe for BreakerExecutor
Blanket Implementations§
§impl<T> ArchivePointee for T
impl<T> ArchivePointee for T
§type ArchivedMetadata = ()
type ArchivedMetadata = ()
The archived version of the pointer metadata for this type.
§fn pointer_metadata(
_: &<T as ArchivePointee>::ArchivedMetadata,
) -> <T as Pointee>::Metadata
fn pointer_metadata( _: &<T as ArchivePointee>::ArchivedMetadata, ) -> <T as Pointee>::Metadata
Converts some archived metadata to the pointer metadata for itself.
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
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more§impl<T> LayoutRaw for T
impl<T> LayoutRaw for T
§fn layout_raw(_: <T as Pointee>::Metadata) -> Result<Layout, LayoutError>
fn layout_raw(_: <T as Pointee>::Metadata) -> Result<Layout, LayoutError>
Returns the layout of the type.