pub trait RemoteQueryHandler:
Send
+ Sync
+ 'static {
// Required method
fn remote_scan<'life0, 'life1, 'async_trait>(
&'life0 self,
table_name: &'life1 str,
projection: Option<Vec<usize>>,
filter_sql: Option<String>,
) -> Pin<Box<dyn Future<Output = Result<RecordBatch, String>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
}Expand description
Node-local provider of table / materialized-view snapshots for remote scans.
Required Methods§
Sourcefn remote_scan<'life0, 'life1, 'async_trait>(
&'life0 self,
table_name: &'life1 str,
projection: Option<Vec<usize>>,
filter_sql: Option<String>,
) -> Pin<Box<dyn Future<Output = Result<RecordBatch, String>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn remote_scan<'life0, 'life1, 'async_trait>(
&'life0 self,
table_name: &'life1 str,
projection: Option<Vec<usize>>,
filter_sql: Option<String>,
) -> Pin<Box<dyn Future<Output = Result<RecordBatch, String>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
This node’s locally-held rows for table_name, optionally projected and
optionally filtered by filter_sql before serialization.
§Errors
Unknown table or invalid projection. A filter_sql that fails to compile
is skipped (the coordinator re-applies it), not an error.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".