pub trait BatchableTransformer: Send + Sync {
// Required method
fn batch_transform<'life0, 'async_trait>(
&'life0 self,
nodes: Vec<Node>,
) -> Pin<Box<dyn Future<Output = IndexingStream> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
// Provided method
fn concurrency(&self) -> Option<usize> { ... }
}
Expand description
Transforms batched single nodes into streams of nodes
Required Methods§
sourcefn batch_transform<'life0, 'async_trait>(
&'life0 self,
nodes: Vec<Node>,
) -> Pin<Box<dyn Future<Output = IndexingStream> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn batch_transform<'life0, 'async_trait>(
&'life0 self,
nodes: Vec<Node>,
) -> Pin<Box<dyn Future<Output = IndexingStream> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Transforms a batch of nodes into a stream of nodes
Provided Methods§
sourcefn concurrency(&self) -> Option<usize>
fn concurrency(&self) -> Option<usize>
Overrides the default concurrency of the pipeline
Trait Implementations§
source§impl WithBatchIndexingDefaults for dyn BatchableTransformer
impl WithBatchIndexingDefaults for dyn BatchableTransformer
fn with_indexing_defaults(&mut self, _indexing_defaults: IndexingDefaults)
Implementors§
impl<F> BatchableTransformer for F
Use a closure as a batchable transformer