pub trait ChunkerTransformer:
Send
+ Sync
+ DynClone {
type Input: Chunk;
type Output: Chunk;
// Required method
fn transform_node<'life0, 'async_trait>(
&'life0 self,
node: Node<Self::Input>,
) -> Pin<Box<dyn Future<Output = IndexingStream<Self::Output>> + 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 Associated Types§
Required Methods§
fn transform_node<'life0, 'async_trait>(
&'life0 self,
node: Node<Self::Input>,
) -> Pin<Box<dyn Future<Output = IndexingStream<Self::Output>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Provided Methods§
Sourcefn concurrency(&self) -> Option<usize>
fn concurrency(&self) -> Option<usize>
Overrides the default concurrency of the pipeline
fn name(&self) -> &'static str
Trait Implementations§
Source§impl<I: Chunk, O: Chunk> ChunkerTransformer for &dyn ChunkerTransformer<Input = I, Output = O>
impl<I: Chunk, O: Chunk> ChunkerTransformer for &dyn ChunkerTransformer<Input = I, Output = O>
type Input = I
type Output = O
fn transform_node<'life0, 'async_trait>(
&'life0 self,
node: Node<I>,
) -> Pin<Box<dyn Future<Output = IndexingStream<O>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Source§fn concurrency(&self) -> Option<usize>
fn concurrency(&self) -> Option<usize>
Overrides the default concurrency of the pipeline
fn name(&self) -> &'static str
Source§impl<I: Chunk, O: Chunk> ChunkerTransformer for Box<dyn ChunkerTransformer<Input = I, Output = O>>
impl<I: Chunk, O: Chunk> ChunkerTransformer for Box<dyn ChunkerTransformer<Input = I, Output = O>>
type Input = I
type Output = O
fn transform_node<'life0, 'async_trait>(
&'life0 self,
node: Node<I>,
) -> Pin<Box<dyn Future<Output = IndexingStream<O>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Source§fn concurrency(&self) -> Option<usize>
fn concurrency(&self) -> Option<usize>
Overrides the default concurrency of the pipeline