[−][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(mut self: Self, has_header: bool) -> Self
[src]
Configure has_header setting
pub fn delimiter(mut self: Self, delimiter: u8) -> Self
[src]
Specify delimiter to use for CSV read
pub fn file_extension(mut self: Self, file_extension: &'a str) -> Self
[src]
Specify the file extension for CSV file selection
pub fn delimiter_option(mut self: Self, delimiter: Option<u8>) -> Self
[src]
Configure delimiter setting with Option, None value will be ignored
pub fn schema(mut self: Self, schema: &'a Schema) -> Self
[src]
Specify schema to use for CSV read
pub fn schema_infer_max_records(mut self: 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]
pub 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>
[src]
impl<'a> Send for CsvReadOptions<'a>
[src]
impl<'a> Sync for CsvReadOptions<'a>
[src]
impl<'a> Unpin for CsvReadOptions<'a>
[src]
impl<'a> UnwindSafe for CsvReadOptions<'a>
[src]
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,
pub 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> Pointable for T
pub const ALIGN: usize
type Init = T
The type for initializers.
pub unsafe fn init(init: <T as Pointable>::Init) -> usize
pub unsafe fn deref<'a>(ptr: usize) -> &'a T
pub unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T
pub unsafe fn drop(ptr: usize)
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub 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.
pub 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.
pub 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>,