pub struct ExecutionEngine { /* private fields */ }Expand description
A configurable execution engine for in-memory DataSet pipelines.
Implementations§
Source§impl ExecutionEngine
impl ExecutionEngine
Sourcepub fn new(opts: ExecutionOptions) -> Self
pub fn new(opts: ExecutionOptions) -> Self
Create a new engine with the given options.
§Panics
Panics if chunk_size == 0, max_in_flight_chunks == 0, or num_threads == Some(0).
Sourcepub fn with_observer(self, observer: Arc<dyn ExecutionObserver>) -> Self
pub fn with_observer(self, observer: Arc<dyn ExecutionObserver>) -> Self
Attach an observer for execution events (metrics/logging).
Sourcepub fn metrics(&self) -> Arc<ExecutionMetrics>
pub fn metrics(&self) -> Arc<ExecutionMetrics>
Get a handle to real-time execution metrics.
Sourcepub fn filter_parallel<F>(&self, dataset: &DataSet, predicate: F) -> DataSet
pub fn filter_parallel<F>(&self, dataset: &DataSet, predicate: F) -> DataSet
Execute a parallel filter over the dataset.
Sourcepub fn map_parallel<F>(&self, dataset: &DataSet, mapper: F) -> DataSet
pub fn map_parallel<F>(&self, dataset: &DataSet, mapper: F) -> DataSet
Execute a parallel map over the dataset.
§Panics
Panics if mapper returns rows with a different length than the schema field count.
Auto Trait Implementations§
impl Freeze for ExecutionEngine
impl !RefUnwindSafe for ExecutionEngine
impl Send for ExecutionEngine
impl Sync for ExecutionEngine
impl Unpin for ExecutionEngine
impl !UnwindSafe for ExecutionEngine
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
§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