Trait BatchableTransformer

Source
pub trait BatchableTransformer:
    Send
    + Sync
    + DynClone {
    // 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 methods
    fn concurrency(&self) -> Option<usize> { ... }
    fn name(&self) -> &'static str { ... }
    fn batch_size(&self) -> Option<usize> { ... }
}
Expand description

Transforms batched single nodes into streams of nodes

Required Methods§

Source

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§

Source

fn concurrency(&self) -> Option<usize>

Overrides the default concurrency of the pipeline

Source

fn name(&self) -> &'static str

Source

fn batch_size(&self) -> Option<usize>

Overrides the default batch size of the pipeline

Trait Implementations§

Source§

impl BatchableTransformer for &dyn BatchableTransformer

Source§

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
Source§

fn concurrency(&self) -> Option<usize>

Overrides the default concurrency of the pipeline
Source§

fn name(&self) -> &'static str

Source§

fn batch_size(&self) -> Option<usize>

Overrides the default batch size of the pipeline
Source§

impl BatchableTransformer for Box<dyn BatchableTransformer>

Source§

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
Source§

fn concurrency(&self) -> Option<usize>

Overrides the default concurrency of the pipeline
Source§

fn name(&self) -> &'static str

Source§

fn batch_size(&self) -> Option<usize>

Overrides the default batch size of the pipeline
Source§

impl WithBatchIndexingDefaults for Box<dyn BatchableTransformer>

Source§

fn with_indexing_defaults(&mut self, indexing_defaults: IndexingDefaults)

Source§

impl WithBatchIndexingDefaults for dyn BatchableTransformer

Source§

fn with_indexing_defaults(&mut self, _indexing_defaults: IndexingDefaults)

Implementations on Foreign Types§

Source§

impl BatchableTransformer for Box<dyn BatchableTransformer>

Source§

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,

Source§

fn concurrency(&self) -> Option<usize>

Source§

fn name(&self) -> &'static str

Implementors§