pub struct MssqlOutputWriteJob { /* private fields */ }Expand description
One deferred SQL Server output write job.
The job owns an already resolved SQL Server target plus a lazy batch stream factory. The workflow awaits the factory only after the output becomes the next attempted output. Skipped jobs keep their stream factories uncalled, so skipped outputs do not start source reads, DataFusion execution, stream setup, SQL connections, lifecycle preparation, writer initialization, or batch polling through this API.
Implementations§
Source§impl MssqlOutputWriteJob
impl MssqlOutputWriteJob
Sourcepub fn new<F, Fut, S>(
output_schema: SchemaRef,
resolved_target: ResolvedMssqlTarget,
schema_options: MssqlSchemaPlanOptions,
batches: F,
write_options: MssqlWriteOptions,
validation_options: ValidationOptions,
) -> Selfwhere
F: FnOnce() -> Fut + Send + 'static,
Fut: Future<Output = Result<S, DeltaFunnelError>> + Send + 'static,
S: Stream<Item = Result<RecordBatch, DeltaFunnelError>> + Send + 'static,
pub fn new<F, Fut, S>(
output_schema: SchemaRef,
resolved_target: ResolvedMssqlTarget,
schema_options: MssqlSchemaPlanOptions,
batches: F,
write_options: MssqlWriteOptions,
validation_options: ValidationOptions,
) -> Selfwhere
F: FnOnce() -> Fut + Send + 'static,
Fut: Future<Output = Result<S, DeltaFunnelError>> + Send + 'static,
S: Stream<Item = Result<RecordBatch, DeltaFunnelError>> + Send + 'static,
Creates a deferred SQL Server output write job.
Sourcepub fn with_phase_timings(self, phase_timings: Vec<PhaseTimingReport>) -> Self
pub fn with_phase_timings(self, phase_timings: Vec<PhaseTimingReport>) -> Self
Adds phase timings that completed before this deferred write job runs.
Sourcepub fn with_default_write_options<F, Fut, S>(
output_schema: SchemaRef,
resolved_target: ResolvedMssqlTarget,
schema_options: MssqlSchemaPlanOptions,
batches: F,
) -> Selfwhere
F: FnOnce() -> Fut + Send + 'static,
Fut: Future<Output = Result<S, DeltaFunnelError>> + Send + 'static,
S: Stream<Item = Result<RecordBatch, DeltaFunnelError>> + Send + 'static,
pub fn with_default_write_options<F, Fut, S>(
output_schema: SchemaRef,
resolved_target: ResolvedMssqlTarget,
schema_options: MssqlSchemaPlanOptions,
batches: F,
) -> Selfwhere
F: FnOnce() -> Fut + Send + 'static,
Fut: Future<Output = Result<S, DeltaFunnelError>> + Send + 'static,
S: Stream<Item = Result<RecordBatch, DeltaFunnelError>> + Send + 'static,
Creates a deferred SQL Server output write job using default write options.
Sourcepub fn output_name(&self) -> &str
pub fn output_name(&self) -> &str
Returns the selected output name.
Sourcepub fn target_summary(&self) -> MssqlTargetSummary
pub fn target_summary(&self) -> MssqlTargetSummary
Returns a redacted target summary for reports.
Sourcepub fn phase_timings(&self) -> &[PhaseTimingReport]
pub fn phase_timings(&self) -> &[PhaseTimingReport]
Returns phase timings that completed before this deferred write job runs.
Auto Trait Implementations§
impl !RefUnwindSafe for MssqlOutputWriteJob
impl !Sync for MssqlOutputWriteJob
impl !UnwindSafe for MssqlOutputWriteJob
impl Freeze for MssqlOutputWriteJob
impl Send for MssqlOutputWriteJob
impl Unpin for MssqlOutputWriteJob
impl UnsafeUnpin for MssqlOutputWriteJob
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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>
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