pub struct ParallelPipeline { /* private fields */ }Expand description
High-performance parallel data pipeline
Implementations§
Source§impl ParallelPipeline
impl ParallelPipeline
Sourcepub fn with_max_concurrency(self, max: usize) -> Self
pub fn with_max_concurrency(self, max: usize) -> Self
Set maximum concurrency
Sourcepub fn with_loader<F>(self, loader: F) -> Self
pub fn with_loader<F>(self, loader: F) -> Self
Set custom data loader
Sourcepub async fn process(&self, source_id: &str) -> Result<DataSource, DataError>
pub async fn process(&self, source_id: &str) -> Result<DataSource, DataError>
Process a single source
Sourcepub async fn process_parallel(
&self,
source_ids: Vec<String>,
) -> Vec<Result<DataSource, DataError>>
pub async fn process_parallel( &self, source_ids: Vec<String>, ) -> Vec<Result<DataSource, DataError>>
Process multiple sources in parallel
Sourcepub fn metrics(&self) -> &DataMatchingMetrics
pub fn metrics(&self) -> &DataMatchingMetrics
Get metrics
Sourcepub fn clear_cache(&self)
pub fn clear_cache(&self)
Clear cache
Auto Trait Implementations§
impl Freeze for ParallelPipeline
impl !RefUnwindSafe for ParallelPipeline
impl Send for ParallelPipeline
impl Sync for ParallelPipeline
impl Unpin for ParallelPipeline
impl UnsafeUnpin for ParallelPipeline
impl !UnwindSafe for ParallelPipeline
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