pub struct CsvExecBuilder { /* private fields */ }
Implementationsยง
Sourceยงimpl CsvExecBuilder
impl CsvExecBuilder
Sourcepub fn new(file_scan_config: FileScanConfig) -> Self
pub fn new(file_scan_config: FileScanConfig) -> Self
Create a new builder to read the provided file scan configuration.
Sourcepub fn with_has_header(self, has_header: bool) -> Self
pub fn with_has_header(self, has_header: bool) -> Self
Set whether the first row defines the column names.
The default value is false
.
Sourcepub fn with_delimeter(self, delimiter: u8) -> Self
pub fn with_delimeter(self, delimiter: u8) -> Self
Set the column delimeter.
The default is ,
.
Sourcepub fn with_quote(self, quote: u8) -> Self
pub fn with_quote(self, quote: u8) -> Self
Set the quote character.
The default is "
.
Sourcepub fn with_terminator(self, terminator: Option<u8>) -> Self
pub fn with_terminator(self, terminator: Option<u8>) -> Self
Set the line terminator. If not set, the default is CRLF.
The default is None.
Sourcepub fn with_escape(self, escape: Option<u8>) -> Self
pub fn with_escape(self, escape: Option<u8>) -> Self
Set the escape character.
The default is None
(i.e. quotes cannot be escaped).
Sourcepub fn with_comment(self, comment: Option<u8>) -> Self
pub fn with_comment(self, comment: Option<u8>) -> Self
Set the comment character.
The default is None
(i.e. comments are not supported).
Sourcepub fn with_newlines_in_values(self, newlines_in_values: bool) -> Self
pub fn with_newlines_in_values(self, newlines_in_values: bool) -> Self
Set whether newlines in (quoted) values are supported.
Parsing newlines in quoted values may be affected by execution behaviour such as
parallel file scanning. Setting this to true
ensures that newlines in values are
parsed successfully, which may reduce performance.
The default value is false
.
Sourcepub fn with_file_compression_type(
self,
file_compression_type: FileCompressionType,
) -> Self
pub fn with_file_compression_type( self, file_compression_type: FileCompressionType, ) -> Self
Set the file compression type.
The default is FileCompressionType::UNCOMPRESSED
.
Trait Implementationsยง
Sourceยงimpl Clone for CsvExecBuilder
impl Clone for CsvExecBuilder
Sourceยงfn clone(&self) -> CsvExecBuilder
fn clone(&self) -> CsvExecBuilder
1.0.0 ยท Sourceยงfn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreAuto Trait Implementationsยง
impl Freeze for CsvExecBuilder
impl !RefUnwindSafe for CsvExecBuilder
impl Send for CsvExecBuilder
impl Sync for CsvExecBuilder
impl Unpin for CsvExecBuilder
impl !UnwindSafe for CsvExecBuilder
Blanket Implementationsยง
Sourceยงimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Sourceยงfn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Sourceยงimpl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Sourceยงimpl<T> IntoEither for T
impl<T> IntoEither for T
Sourceยงfn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSourceยงfn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more