Struct datafusion::physical_plan::csv::CsvExec[][src]

pub struct CsvExec { /* fields omitted */ }

Execution plan for scanning a CSV file

Implementations

impl CsvExec[src]

pub fn try_new(
    path: &str,
    options: CsvReadOptions<'_>,
    projection: Option<Vec<usize>>,
    batch_size: usize,
    limit: Option<usize>
) -> Result<Self>
[src]

Create a new execution plan for reading a set of CSV files

pub fn path(&self) -> &str[src]

Path to directory containing partitioned CSV files with the same schema

pub fn filenames(&self) -> &[String][src]

The individual files under path

pub fn has_header(&self) -> bool[src]

Does the CSV file have a header?

pub fn delimiter(&self) -> Option<&u8>[src]

An optional column delimiter. Defaults to b','

pub fn file_extension(&self) -> &str[src]

File extension

pub fn file_schema(&self) -> SchemaRef[src]

Get the schema of the CSV file

pub fn projection(&self) -> Option<&Vec<usize>>[src]

Optional projection for which columns to load

pub fn batch_size(&self) -> usize[src]

Batch size

pub fn limit(&self) -> Option<usize>[src]

Limit

pub fn try_infer_schema(
    filenames: &[String],
    options: &CsvReadOptions<'_>
) -> Result<Schema>
[src]

Infer schema for given CSV dataset

Trait Implementations

impl Clone for CsvExec[src]

impl Debug for CsvExec[src]

impl ExecutionPlan for CsvExec[src]

fn as_any(&self) -> &dyn Any[src]

Return a reference to Any that can be used for downcasting

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

Get the schema for this execution plan

fn output_partitioning(&self) -> Partitioning[src]

Get the output partitioning of this plan

Auto Trait Implementations

impl RefUnwindSafe for CsvExec

impl Send for CsvExec

impl Sync for CsvExec

impl Unpin for CsvExec

impl UnwindSafe for CsvExec

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,