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§
sourcefn 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<'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.
sourcefn 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,
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