Struct datafusion::datasource::empty::EmptyTable
source · [−]pub struct EmptyTable { /* private fields */ }
Expand description
A table with a schema but no data.
Implementations
sourceimpl EmptyTable
impl EmptyTable
Trait Implementations
sourceimpl TableProvider for EmptyTable
impl TableProvider for EmptyTable
sourcefn scan<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
projection: &'life1 Option<Vec<usize>>,
_filters: &'life2 [Expr],
_limit: Option<usize>
) -> Pin<Box<dyn Future<Output = Result<Arc<dyn ExecutionPlan>>> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Self: 'async_trait,
fn scan<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
projection: &'life1 Option<Vec<usize>>,
_filters: &'life2 [Expr],
_limit: Option<usize>
) -> Pin<Box<dyn Future<Output = Result<Arc<dyn ExecutionPlan>>> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Self: 'async_trait,
Create an ExecutionPlan that will scan the table. The table provider will be usually responsible of grouping the source data into partitions that can be efficiently parallelized or distributed. Read more
sourcefn table_type(&self) -> TableType
fn table_type(&self) -> TableType
Get the type of this table for metadata/catalog purposes.
sourcefn supports_filter_pushdown(
&self,
_filter: &Expr
) -> Result<TableProviderFilterPushDown>
fn supports_filter_pushdown(
&self,
_filter: &Expr
) -> Result<TableProviderFilterPushDown>
Tests whether the table provider can make use of a filter expression to optimise data retrieval. Read more
Auto Trait Implementations
impl RefUnwindSafe for EmptyTable
impl Send for EmptyTable
impl Sync for EmptyTable
impl Unpin for EmptyTable
impl UnwindSafe for EmptyTable
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more