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>,
filepaths: Option<Vec<String>>,
) -> Self
pub fn new( schema: SchemaRef, statistics: Option<SqlStatistics>, filepaths: Option<Vec<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
Implement TableSource, used in the logical query plan and in logical query optimizations
impl TableSource for SqlTableSource
Implement TableSource, used in the logical query plan and in logical query optimizations
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 optimize data retrieval. Only non-volatile expressions are passed to this function.
Source§fn get_logical_plan(&self) -> Option<Cow<'_, LogicalPlan>>
fn get_logical_plan(&self) -> Option<Cow<'_, LogicalPlan>>
Get the Logical plan of this table provider, if available. Read more
Source§fn constraints(&self) -> Option<&Constraints>
fn constraints(&self) -> Option<&Constraints>
Get primary key indices, if any
Auto Trait Implementations§
impl Freeze for SqlTableSource
impl RefUnwindSafe for SqlTableSource
impl Send for SqlTableSource
impl Sync for SqlTableSource
impl Unpin for SqlTableSource
impl UnsafeUnpin for SqlTableSource
impl UnwindSafe for SqlTableSource
Blanket Implementations§
Source§impl<Source> AccessAs for Source
impl<Source> AccessAs for Source
impl<T> Allocation for T
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more