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