pub struct ExportBuilder<'a> { /* private fields */ }
Expand description
A builder for an ETL EXPORT job.
Calling [build().await
] will ouput a future that drives the EXPORT query execution and a
Vec<ExaReader>
which must be concurrently used to read data from Exasol.
Implementations§
Source§impl<'a> ExportBuilder<'a>
impl<'a> ExportBuilder<'a>
pub fn new(source: ExportSource<'a>) -> Self
Sourcepub async fn build<'c>(
&'a self,
con: &'c mut ExaConnection,
) -> Result<(BoxFuture<'c, Result<ExaQueryResult>>, Vec<ExaExport>)>where
'c: 'a,
pub async fn build<'c>(
&'a self,
con: &'c mut ExaConnection,
) -> Result<(BoxFuture<'c, Result<ExaQueryResult>>, Vec<ExaExport>)>where
'c: 'a,
Builds the EXPORT job.
This implies submitting the EXPORT query. The output will be a future to await the result of the job and the workers that can be used for ETL IO.
§Errors
Returns an error if the job could not be built and submitted.
Sourcepub fn num_readers(&mut self, num_readers: usize) -> &mut Self
pub fn num_readers(&mut self, num_readers: usize) -> &mut Self
Sets the number of reader jobs that will be started.
If set to 0
, then as many as possible will be used (one per node). Providing a number
bigger than the number of nodes is the same as providing 0
.
pub fn compression(&mut self, enabled: bool) -> &mut Self
pub fn comment(&mut self, comment: &'a str) -> &mut Self
pub fn encoding(&mut self, encoding: &'a str) -> &mut Self
pub fn null(&mut self, null: &'a str) -> &mut Self
pub fn row_separator(&mut self, separator: RowSeparator) -> &mut Self
pub fn column_separator(&mut self, separator: &'a str) -> &mut Self
pub fn column_delimiter(&mut self, delimiter: &'a str) -> &mut Self
pub fn with_column_names(&mut self, flag: bool) -> &mut Self
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for ExportBuilder<'a>
impl<'a> RefUnwindSafe for ExportBuilder<'a>
impl<'a> Send for ExportBuilder<'a>
impl<'a> Sync for ExportBuilder<'a>
impl<'a> Unpin for ExportBuilder<'a>
impl<'a> UnwindSafe for ExportBuilder<'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> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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