pub struct RestoreBuilder { /* private fields */ }
Expand description
Restore a Delta table with given version See this module’s documentation for more information
Implementations§
Source§impl RestoreBuilder
impl RestoreBuilder
Sourcepub fn new(log_store: LogStoreRef, snapshot: DeltaTableState) -> Self
pub fn new(log_store: LogStoreRef, snapshot: DeltaTableState) -> Self
Create a new RestoreBuilder
Sourcepub fn with_version_to_restore(self, version: i64) -> Self
pub fn with_version_to_restore(self, version: i64) -> Self
Set the version to restore
Sourcepub fn with_datetime_to_restore(self, datetime: DateTime<Utc>) -> Self
pub fn with_datetime_to_restore(self, datetime: DateTime<Utc>) -> Self
Set the datetime to restore
Sourcepub fn with_ignore_missing_files(self, ignore_missing_files: bool) -> Self
pub fn with_ignore_missing_files(self, ignore_missing_files: bool) -> Self
Set whether to ignore missing files which delete manually or by vacuum. If true, continue to run when encountering missing files.
Sourcepub fn with_protocol_downgrade_allowed(
self,
protocol_downgrade_allowed: bool,
) -> Self
pub fn with_protocol_downgrade_allowed( self, protocol_downgrade_allowed: bool, ) -> Self
Set whether allow to downgrade protocol
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 IntoFuture for RestoreBuilder
impl IntoFuture for RestoreBuilder
Source§type Output = Result<(DeltaTable, RestoreMetrics), DeltaTableError>
type Output = Result<(DeltaTable, RestoreMetrics), DeltaTableError>
The output that the future will produce on completion.
Source§type IntoFuture = Pin<Box<dyn Future<Output = <RestoreBuilder as IntoFuture>::Output> + Send>>
type IntoFuture = Pin<Box<dyn Future<Output = <RestoreBuilder 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 RestoreBuilder
impl !RefUnwindSafe for RestoreBuilder
impl Send for RestoreBuilder
impl Sync for RestoreBuilder
impl Unpin for RestoreBuilder
impl !UnwindSafe for RestoreBuilder
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