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

Create a new DefaultTableSource to wrap a TableProvider

Trait Implementations

Returns the table source as Any so that it can be downcast to a specific implementation.

Get a reference to the schema for this table

Tests whether the table provider can make use of a filter expression to optimise data retrieval.

Get the type of this table for metadata/catalog purposes.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Should always be Self

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.