Skip to main content

SourceExecutor

Trait SourceExecutor 

Source
pub trait SourceExecutor: Send + Sync {
    // Required methods
    fn list<'life0, 'life1, 'async_trait>(
        &'life0 self,
        options: &'life1 SourceExecutorReadOptions,
    ) -> Pin<Box<dyn Future<Output = Result<BoxStream<'async_trait, Result<Vec<PartialSourceRow>>>>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait;
    fn get_value<'life0, 'life1, 'life2, 'life3, 'async_trait>(
        &'life0 self,
        key: &'life1 KeyValue,
        key_aux_info: &'life2 Value,
        options: &'life3 SourceExecutorReadOptions,
    ) -> Pin<Box<dyn Future<Output = Result<PartialSourceRowData>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait,
             'life2: 'async_trait,
             'life3: 'async_trait;
    fn provides_ordinal(&self) -> bool;

    // Provided method
    fn change_stream<'life0, 'async_trait>(
        &'life0 self,
    ) -> Pin<Box<dyn Future<Output = Result<Option<BoxStream<'async_trait, Result<SourceChangeMessage>>>>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait { ... }
}

Required Methods§

Source

fn list<'life0, 'life1, 'async_trait>( &'life0 self, options: &'life1 SourceExecutorReadOptions, ) -> Pin<Box<dyn Future<Output = Result<BoxStream<'async_trait, Result<Vec<PartialSourceRow>>>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Get the list of keys for the source.

Source

fn get_value<'life0, 'life1, 'life2, 'life3, 'async_trait>( &'life0 self, key: &'life1 KeyValue, key_aux_info: &'life2 Value, options: &'life3 SourceExecutorReadOptions, ) -> Pin<Box<dyn Future<Output = Result<PartialSourceRowData>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait, 'life3: 'async_trait,

Source

fn provides_ordinal(&self) -> bool

Provided Methods§

Source

fn change_stream<'life0, 'async_trait>( &'life0 self, ) -> Pin<Box<dyn Future<Output = Result<Option<BoxStream<'async_trait, Result<SourceChangeMessage>>>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Implementors§