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

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

Source table

Required methods

fn schema(&self) -> SchemaRef

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]

fn schema(&self) -> SchemaRef[src]

Get the schema for this parquet file.

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

Scan the file(s), using the provided projection, and return one BatchIterator per partition.

Loading content...