pub struct RenamingSnapshotCommit { /* private fields */ }Expand description
A SnapshotCommit using file renaming to commit.
Reference: pypaimon RenamingSnapshotCommit
Implementations§
Source§impl RenamingSnapshotCommit
impl RenamingSnapshotCommit
pub fn new(snapshot_manager: SnapshotManager) -> Self
Trait Implementations§
Source§impl SnapshotCommit for RenamingSnapshotCommit
impl SnapshotCommit for RenamingSnapshotCommit
Source§fn commit<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
snapshot: &'life1 Snapshot,
_statistics: &'life2 [PartitionStatistics],
) -> Pin<Box<dyn Future<Output = Result<bool>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
fn commit<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
snapshot: &'life1 Snapshot,
_statistics: &'life2 [PartitionStatistics],
) -> Pin<Box<dyn Future<Output = Result<bool>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Commit the given snapshot. Returns true if successful, false if
another writer won the race.
Auto Trait Implementations§
impl Freeze for RenamingSnapshotCommit
impl !RefUnwindSafe for RenamingSnapshotCommit
impl Send for RenamingSnapshotCommit
impl Sync for RenamingSnapshotCommit
impl Unpin for RenamingSnapshotCommit
impl UnsafeUnpin for RenamingSnapshotCommit
impl !UnwindSafe for RenamingSnapshotCommit
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