[][src]Trait datafusion::datasource::datasource::TableProvider

pub trait TableProvider {
    fn schema(&self) -> &Arc<Schema>;
fn scan(
        &self,
        projection: &Option<Vec<usize>>,
        batch_size: usize
    ) -> Result<Vec<ScanResult>>; }

Source table

Required methods

fn schema(&self) -> &Arc<Schema>

Get a reference to the schema for this table

fn scan(
    &self,
    projection: &Option<Vec<usize>>,
    batch_size: usize
) -> Result<Vec<ScanResult>>

Perform a scan of a table and return a sequence of iterators over the data (one iterator per partition)

Loading content...

Implementors

impl TableProvider for CsvFile[src]

impl TableProvider for MemTable[src]

impl TableProvider for ParquetTable[src]

Loading content...