Struct datafusion::datasource::provider::DefaultTableFactory
source · pub struct DefaultTableFactory { /* private fields */ }Expand description
The default TableProviderFactory
If CreateExternalTable is unbounded calls StreamTableFactory::create,
otherwise calls ListingTableFactory::create
Implementations§
source§impl DefaultTableFactory
impl DefaultTableFactory
sourcepub fn new() -> Self
pub fn new() -> Self
Creates a new DefaultTableFactory
Trait Implementations§
source§impl Debug for DefaultTableFactory
impl Debug for DefaultTableFactory
source§impl Default for DefaultTableFactory
impl Default for DefaultTableFactory
source§fn default() -> DefaultTableFactory
fn default() -> DefaultTableFactory
Returns the “default value” for a type. Read more
source§impl TableProviderFactory for DefaultTableFactory
impl TableProviderFactory for DefaultTableFactory
source§fn create<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
state: &'life1 SessionState,
cmd: &'life2 CreateExternalTable
) -> Pin<Box<dyn Future<Output = Result<Arc<dyn TableProvider>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
fn create<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
state: &'life1 SessionState,
cmd: &'life2 CreateExternalTable
) -> Pin<Box<dyn Future<Output = Result<Arc<dyn TableProvider>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Create a TableProvider with the given url
Auto Trait Implementations§
impl RefUnwindSafe for DefaultTableFactory
impl Send for DefaultTableFactory
impl Sync for DefaultTableFactory
impl Unpin for DefaultTableFactory
impl UnwindSafe for DefaultTableFactory
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