Trait ChunkerTransformer

Source
pub trait ChunkerTransformer:
    Send
    + Sync
    + DynClone {
    // Required method
    fn transform_node<'life0, 'async_trait>(
        &'life0 self,
        node: 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 { ... }
}
Expand description

Turns one node into many nodes

Required Methods§

Source

fn transform_node<'life0, 'async_trait>( &'life0 self, node: Node, ) -> Pin<Box<dyn Future<Output = IndexingStream> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Provided Methods§

Source

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

Overrides the default concurrency of the pipeline

Source

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

Trait Implementations§

Source§

impl ChunkerTransformer for &dyn ChunkerTransformer

Source§

fn transform_node<'life0, 'async_trait>( &'life0 self, node: Node, ) -> Pin<Box<dyn Future<Output = IndexingStream> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Source§

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

Overrides the default concurrency of the pipeline
Source§

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

Source§

impl ChunkerTransformer for Box<dyn ChunkerTransformer>

Source§

fn transform_node<'life0, 'async_trait>( &'life0 self, node: Node, ) -> Pin<Box<dyn Future<Output = IndexingStream> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Source§

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

Overrides the default concurrency of the pipeline
Source§

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

Implementations on Foreign Types§

Source§

impl ChunkerTransformer for Box<dyn ChunkerTransformer>

Source§

fn transform_node<'life0, 'async_trait>( &'life0 self, node: 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§