StreamingSink

Trait StreamingSink 

Source
pub trait StreamingSink: Send + Sync {
    type Error: Send + Sync + Error + 'static;

    // Required methods
    fn process_triple_batch<'life0, 'async_trait>(
        &'life0 mut self,
        triples: Vec<Triple>,
    ) -> Pin<Box<dyn Future<Output = Result<(), Self::Error>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn process_quad_batch<'life0, 'async_trait>(
        &'life0 mut self,
        quads: Vec<Quad>,
    ) -> Pin<Box<dyn Future<Output = Result<(), Self::Error>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn flush<'life0, 'async_trait>(
        &'life0 mut self,
    ) -> Pin<Box<dyn Future<Output = Result<(), Self::Error>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn performance_statistics(&self) -> SinkStatistics;
}
Expand description

High-performance streaming sink for processed triples

Required Associated Types§

Source

type Error: Send + Sync + Error + 'static

Required Methods§

Source

fn process_triple_batch<'life0, 'async_trait>( &'life0 mut self, triples: Vec<Triple>, ) -> Pin<Box<dyn Future<Output = Result<(), Self::Error>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Source

fn process_quad_batch<'life0, 'async_trait>( &'life0 mut self, quads: Vec<Quad>, ) -> Pin<Box<dyn Future<Output = Result<(), Self::Error>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Source

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

Source

fn performance_statistics(&self) -> SinkStatistics

Implementors§