[−][src]Struct datafusion::physical_plan::csv::CsvReadOptions
CSV file read option
Fields
has_header: bool
Does the CSV file have a header?
If schema inference is run on a file with no headers, default column names are created.
delimiter: u8
An optional column delimiter. Defaults to b','
.
schema: Option<&'a Schema>
An optional schema representing the CSV files. If None, CSV reader will try to infer it based on data in file.
schema_infer_max_records: usize
Max number of rows to read from CSV files for schema inference if needed. Defaults to 1000.
file_extension: &'a str
File extension; only files with this extension are selected for data input. Defaults to ".csv".
Implementations
impl<'a> CsvReadOptions<'a>
[src]
pub fn new() -> Self
[src]
Create a CSV read option with default presets
pub fn has_header(self, has_header: bool) -> Self
[src]
Configure has_header setting
pub fn delimiter(self, delimiter: u8) -> Self
[src]
Specify delimiter to use for CSV read
pub fn file_extension(self, file_extension: &'a str) -> Self
[src]
Specify the file extension for CSV file selection
pub fn delimiter_option(self, delimiter: Option<u8>) -> Self
[src]
Configure delimiter setting with Option, None value will be ignored
pub fn schema(self, schema: &'a Schema) -> Self
[src]
Specify schema to use for CSV read
pub fn schema_infer_max_records(self, max_records: usize) -> Self
[src]
Configure number of max records to read for schema inference
Trait Implementations
impl<'a> Clone for CsvReadOptions<'a>
[src]
fn clone(&self) -> CsvReadOptions<'a>
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl<'a> Copy for CsvReadOptions<'a>
[src]
Auto Trait Implementations
impl<'a> RefUnwindSafe for CsvReadOptions<'a>
impl<'a> Send for CsvReadOptions<'a>
impl<'a> Sync for CsvReadOptions<'a>
impl<'a> Unpin for CsvReadOptions<'a>
impl<'a> UnwindSafe for CsvReadOptions<'a>
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,