common_meta::node_manager

Trait Datanode

source
pub trait Datanode: Send + Sync {
    // Required methods
    fn handle<'life0, 'async_trait>(
        &'life0 self,
        request: RegionRequest,
    ) -> Pin<Box<dyn Future<Output = Result<RegionResponse>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn handle_query<'life0, 'async_trait>(
        &'life0 self,
        request: QueryRequest,
    ) -> Pin<Box<dyn Future<Output = Result<SendableRecordBatchStream>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
}
Expand description

The trait for handling requests to datanode.

Required Methods§

source

fn handle<'life0, 'async_trait>( &'life0 self, request: RegionRequest, ) -> Pin<Box<dyn Future<Output = Result<RegionResponse>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Handles DML, and DDL requests.

source

fn handle_query<'life0, 'async_trait>( &'life0 self, request: QueryRequest, ) -> Pin<Box<dyn Future<Output = Result<SendableRecordBatchStream>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Handles query requests

Implementors§