pub struct FileStreamBuilder<'a> { /* private fields */ }Expand description
Builder for constructing a FileStream.
Implementations§
Source§impl<'a> FileStreamBuilder<'a>
impl<'a> FileStreamBuilder<'a>
Sourcepub fn new(config: &'a FileScanConfig) -> Self
pub fn new(config: &'a FileScanConfig) -> Self
Create a new builder for FileStream.
Sourcepub fn with_partition(self, partition: usize) -> Self
pub fn with_partition(self, partition: usize) -> Self
Configure the partition to scan.
Sourcepub fn with_file_opener(self, file_opener: Arc<dyn FileOpener>) -> Self
pub fn with_file_opener(self, file_opener: Arc<dyn FileOpener>) -> Self
Configure the FileOpener used to open files.
This will overwrite any setting from Self::with_morselizer
Sourcepub fn with_morselizer(self, morselizer: Box<dyn Morselizer>) -> Self
pub fn with_morselizer(self, morselizer: Box<dyn Morselizer>) -> Self
Configure the Morselizer used to open files.
This will overwrite any setting from Self::with_file_opener
Sourcepub fn with_metrics(self, metrics: &'a ExecutionPlanMetricsSet) -> Self
pub fn with_metrics(self, metrics: &'a ExecutionPlanMetricsSet) -> Self
Configure the metrics set used by the stream.
Sourcepub fn with_on_error(self, on_error: OnError) -> Self
pub fn with_on_error(self, on_error: OnError) -> Self
Configure the behavior when opening or scanning a file fails.
Sourcepub fn build(self) -> Result<FileStream>
pub fn build(self) -> Result<FileStream>
Build the configured FileStream.
Auto Trait Implementations§
impl<'a> !RefUnwindSafe for FileStreamBuilder<'a>
impl<'a> !UnwindSafe for FileStreamBuilder<'a>
impl<'a> Freeze for FileStreamBuilder<'a>
impl<'a> Send for FileStreamBuilder<'a>
impl<'a> Sync for FileStreamBuilder<'a>
impl<'a> Unpin for FileStreamBuilder<'a>
impl<'a> UnsafeUnpin for FileStreamBuilder<'a>
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
Mutably borrows from an owned value. Read more
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>
Converts
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>
Converts
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