pub struct CommitBuilder { /* private fields */ }
Expand description
Prepare data to be committed to the Delta log and control how the commit is performed
Implementations§
Source§impl<'a> CommitBuilder
impl<'a> CommitBuilder
Sourcepub fn with_actions(self, actions: Vec<Action>) -> Self
pub fn with_actions(self, actions: Vec<Action>) -> Self
Actions to be included in the commit
Sourcepub fn with_app_metadata(self, app_metadata: HashMap<String, Value>) -> Self
pub fn with_app_metadata(self, app_metadata: HashMap<String, Value>) -> Self
Metadata for the operation performed like metrics, user, and notebook
Sourcepub fn with_max_retries(self, max_retries: usize) -> Self
pub fn with_max_retries(self, max_retries: usize) -> Self
Maximum number of times to retry the transaction before failing to commit
Sourcepub fn with_post_commit_hook(
self,
post_commit_hook: PostCommitHookProperties,
) -> Self
pub fn with_post_commit_hook( self, post_commit_hook: PostCommitHookProperties, ) -> Self
Specify all the post commit hook properties
Sourcepub fn build(
self,
table_data: Option<&'a dyn TableReference>,
log_store: LogStoreRef,
operation: DeltaOperation,
) -> PreCommit<'a>
pub fn build( self, table_data: Option<&'a dyn TableReference>, log_store: LogStoreRef, operation: DeltaOperation, ) -> PreCommit<'a>
Prepare a Commit operation using the configured builder
Trait Implementations§
Source§impl Default for CommitBuilder
impl Default for CommitBuilder
Source§impl From<CommitProperties> for CommitBuilder
impl From<CommitProperties> for CommitBuilder
Source§fn from(value: CommitProperties) -> Self
fn from(value: CommitProperties) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for CommitBuilder
impl RefUnwindSafe for CommitBuilder
impl Send for CommitBuilder
impl Sync for CommitBuilder
impl Unpin for CommitBuilder
impl UnwindSafe for CommitBuilder
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