pub struct VacuumBuilder { /* private fields */ }
Expand description
Vacuum a Delta table with the given options See this module’s documentation for more information
Implementations§
Source§impl VacuumBuilder
impl VacuumBuilder
Methods to specify various vacuum options and to execute the operation
Sourcepub fn new(log_store: LogStoreRef, snapshot: DeltaTableState) -> Self
pub fn new(log_store: LogStoreRef, snapshot: DeltaTableState) -> Self
Create a new VacuumBuilder
Sourcepub fn with_retention_period(self, retention_period: Duration) -> Self
pub fn with_retention_period(self, retention_period: Duration) -> Self
Override the default rention period for which files are deleted.
Sourcepub fn with_dry_run(self, dry_run: bool) -> Self
pub fn with_dry_run(self, dry_run: bool) -> Self
Only determine which files should be deleted
Sourcepub fn with_enforce_retention_duration(self, enforce: bool) -> Self
pub fn with_enforce_retention_duration(self, enforce: bool) -> Self
Check if the specified retention period is less than the table’s minimum
Sourcepub fn with_commit_properties(self, commit_properties: CommitProperties) -> Self
pub fn with_commit_properties(self, commit_properties: CommitProperties) -> Self
Additional metadata to be added to commit info
Trait Implementations§
Source§impl Debug for VacuumBuilder
impl Debug for VacuumBuilder
Source§impl IntoFuture for VacuumBuilder
impl IntoFuture for VacuumBuilder
Source§type Output = Result<(DeltaTable, VacuumMetrics), DeltaTableError>
type Output = Result<(DeltaTable, VacuumMetrics), DeltaTableError>
The output that the future will produce on completion.
Source§type IntoFuture = Pin<Box<dyn Future<Output = <VacuumBuilder as IntoFuture>::Output> + Send>>
type IntoFuture = Pin<Box<dyn Future<Output = <VacuumBuilder as IntoFuture>::Output> + Send>>
Which kind of future are we turning this into?
Source§fn into_future(self) -> Self::IntoFuture
fn into_future(self) -> Self::IntoFuture
Creates a future from a value. Read more
Auto Trait Implementations§
impl Freeze for VacuumBuilder
impl !RefUnwindSafe for VacuumBuilder
impl Send for VacuumBuilder
impl Sync for VacuumBuilder
impl Unpin for VacuumBuilder
impl !UnwindSafe for VacuumBuilder
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