QueryPartitionProvider

Trait QueryPartitionProvider 

Source
pub trait QueryPartitionProvider:
    Display
    + Send
    + Sync
    + Debug {
    // Required method
    fn fetch<'life0, 'life1, 'life2, 'async_trait>(
        &'life0 self,
        view_set_name: &'life1 str,
        view_instance_id: &'life2 str,
        query_range: Option<TimeRange>,
        file_schema_hash: Vec<u8>,
    ) -> Pin<Box<dyn Future<Output = Result<Vec<Partition>, Error>> + Send + 'async_trait>>
       where 'life0: 'async_trait,
             'life1: 'async_trait,
             'life2: 'async_trait,
             Self: 'async_trait;
}
Expand description

A trait for providing queryable partitions.

Required Methods§

Source

fn fetch<'life0, 'life1, 'life2, 'async_trait>( &'life0 self, view_set_name: &'life1 str, view_instance_id: &'life2 str, query_range: Option<TimeRange>, file_schema_hash: Vec<u8>, ) -> Pin<Box<dyn Future<Output = Result<Vec<Partition>, Error>> + Send + 'async_trait>>
where 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait, Self: 'async_trait,

Fetches partitions based on the provided criteria.

Implementors§