Struct datafusion::datasource::csv::CsvFile [−][src]
pub struct CsvFile { /* fields omitted */ }
Represents a CSV file with a provided schema
Implementations
impl CsvFile
[src]
impl CsvFile
[src]pub fn try_new(path: &str, options: CsvReadOptions<'_>) -> Result<Self>
[src]
Attempt to initialize a new CsvFile
from a file path
pub fn path(&self) -> &str
[src]
Get the path for the CSV file(s) represented by this CsvFile instance
pub fn has_header(&self) -> bool
[src]
Determine whether the CSV file(s) represented by this CsvFile instance have a header row
pub fn delimiter(&self) -> u8
[src]
Get the delimiter for the CSV file(s) represented by this CsvFile instance
pub fn file_extension(&self) -> &str
[src]
Get the file extension for the CSV file(s) represented by this CsvFile instance
Trait Implementations
impl TableProvider for CsvFile
[src]
impl TableProvider for CsvFile
[src]fn as_any(&self) -> &dyn Any
[src]
fn schema(&self) -> SchemaRef
[src]
fn scan(
&self,
projection: &Option<Vec<usize>>,
batch_size: usize,
_filters: &[Expr],
limit: Option<usize>
) -> Result<Arc<dyn ExecutionPlan>>
[src]
&self,
projection: &Option<Vec<usize>>,
batch_size: usize,
_filters: &[Expr],
limit: Option<usize>
) -> Result<Arc<dyn ExecutionPlan>>
fn statistics(&self) -> Statistics
[src]
fn supports_filter_pushdown(
&self,
_filter: &Expr
) -> Result<TableProviderFilterPushDown>
[src]
&self,
_filter: &Expr
) -> Result<TableProviderFilterPushDown>
Auto Trait Implementations
impl RefUnwindSafe for CsvFile
impl RefUnwindSafe for CsvFile
impl UnwindSafe for CsvFile
impl UnwindSafe for CsvFile