Skip to main content

StreamingSource

Trait StreamingSource 

Source
pub trait StreamingSource: Send + Sync {
    // Required methods
    fn next_batch<'life0, 'async_trait>(
        &'life0 mut self,
    ) -> Pin<Box<dyn Future<Output = Result<Vec<ImportedEntity>, ImportError>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn has_more<'life0, 'async_trait>(
        &'life0 self,
    ) -> Pin<Box<dyn Future<Output = bool> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
}
Expand description

Streaming data source

Required Methods§

Source

fn next_batch<'life0, 'async_trait>( &'life0 mut self, ) -> Pin<Box<dyn Future<Output = Result<Vec<ImportedEntity>, ImportError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Get next batch of entities

Source

fn has_more<'life0, 'async_trait>( &'life0 self, ) -> Pin<Box<dyn Future<Output = bool> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Check if more data available

Implementors§