pub struct DefaultTableSource {
pub table_provider: Arc<dyn TableProvider>,
}
Expand description
DataFusion default table source, wrapping TableProvider
This structure adapts a TableProvider
(physical plan trait) to the TableSource
(logical plan trait)
Fields
table_provider: Arc<dyn TableProvider>
table provider
Implementations
sourceimpl DefaultTableSource
impl DefaultTableSource
sourcepub fn new(table_provider: Arc<dyn TableProvider>) -> Self
pub fn new(table_provider: Arc<dyn TableProvider>) -> Self
Create a new DefaultTableSource to wrap a TableProvider
Trait Implementations
sourceimpl TableSource for DefaultTableSource
impl TableSource for DefaultTableSource
sourcefn as_any(&self) -> &dyn Any
fn as_any(&self) -> &dyn Any
Returns the table source as Any
so that it can be
downcast to a specific implementation.
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.
sourcefn table_type(&self) -> TableType
fn table_type(&self) -> TableType
Get the type of this table for metadata/catalog purposes.
Auto Trait Implementations
impl !RefUnwindSafe for DefaultTableSource
impl Send for DefaultTableSource
impl Sync for DefaultTableSource
impl Unpin for DefaultTableSource
impl !UnwindSafe for DefaultTableSource
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more