Struct datafusion_python::common::schema::SqlTableSource
source · pub struct SqlTableSource { /* private fields */ }
Expand description
SqlTable wrapper that is compatible with DataFusion logical query plans
Implementations§
source§impl SqlTableSource
impl SqlTableSource
sourcepub fn new(
schema: SchemaRef,
statistics: Option<SqlStatistics>,
filepath: Option<String>
) -> Self
pub fn new( schema: SchemaRef, statistics: Option<SqlStatistics>, filepath: Option<String> ) -> Self
Initialize a new EmptyTable
from a schema
sourcepub fn statistics(&self) -> Option<&SqlStatistics>
pub fn statistics(&self) -> Option<&SqlStatistics>
Access optional statistics associated with this table source
Trait Implementations§
source§impl TableSource for SqlTableSource
impl TableSource for SqlTableSource
Implement TableSource, used in the logical query plan and in logical query optimizations
fn as_any(&self) -> &dyn Any
source§fn supports_filter_pushdown(
&self,
filter: &Expr
) -> Result<TableProviderFilterPushDown>
fn supports_filter_pushdown( &self, filter: &Expr ) -> Result<TableProviderFilterPushDown>
👎Deprecated since 20.0.0: use supports_filters_pushdown instead
Tests whether the table provider can make use of a filter expression
to optimise data retrieval.
source§fn table_type(&self) -> TableType
fn table_type(&self) -> TableType
Get the type of this table for metadata/catalog purposes.
source§fn supports_filters_pushdown(
&self,
filters: &[&Expr]
) -> Result<Vec<TableProviderFilterPushDown>>
fn supports_filters_pushdown( &self, filters: &[&Expr] ) -> Result<Vec<TableProviderFilterPushDown>>
Tests whether the table provider can make use of any or all filter expressions
to optimise data retrieval.
source§fn get_logical_plan(&self) -> Option<&LogicalPlan>
fn get_logical_plan(&self) -> Option<&LogicalPlan>
Get the Logical plan of this table provider, if available.
source§fn constraints(&self) -> Option<&Constraints>
fn constraints(&self) -> Option<&Constraints>
Get primary key indices, if one exists.
Auto Trait Implementations§
impl RefUnwindSafe for SqlTableSource
impl Send for SqlTableSource
impl Sync for SqlTableSource
impl Unpin for SqlTableSource
impl UnwindSafe for SqlTableSource
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more