TableVirtual

Trait TableVirtual 

Source
pub trait TableVirtual: Send + Sync {
    // Required methods
    fn initialize<'a, 'life0, 'life1, 'async_trait>(
        &'life0 mut self,
        txn: &'life1 mut StandardTransaction<'a>,
        ctx: TableVirtualContext,
    ) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'a: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait;
    fn next<'a, 'life0, 'life1, 'async_trait>(
        &'life0 mut self,
        txn: &'life1 mut StandardTransaction<'a>,
    ) -> Pin<Box<dyn Future<Output = Result<Option<Batch>>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'a: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait;
    fn definition(&self) -> &TableVirtualDef;
}
Expand description

Trait for virtual table instances that follow the volcano iterator pattern

Required Methods§

Source

fn initialize<'a, 'life0, 'life1, 'async_trait>( &'life0 mut self, txn: &'life1 mut StandardTransaction<'a>, ctx: TableVirtualContext, ) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
where Self: 'async_trait, 'a: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Initialize the virtual table iterator with context Called once before iteration begins

Source

fn next<'a, 'life0, 'life1, 'async_trait>( &'life0 mut self, txn: &'life1 mut StandardTransaction<'a>, ) -> Pin<Box<dyn Future<Output = Result<Option<Batch>>> + Send + 'async_trait>>
where Self: 'async_trait, 'a: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Get the next batch of results (volcano iterator pattern)

Source

fn definition(&self) -> &TableVirtualDef

Get the table definition

Implementors§