pub struct CommitRangeBuilder { /* private fields */ }Expand description
Builder for a CommitRange.
Created via CommitRange::builder_for (path-based) or
CommitRange::builder_from (snapshot-based). Supports configuring an end version
and the commit ordering. Self::build performs delta-log listing and contiguity
validation.
Implementations§
Source§impl CommitRangeBuilder
impl CommitRangeBuilder
Sourcepub fn with_end_version(self, end_version: Version) -> Self
pub fn with_end_version(self, end_version: Version) -> Self
Pin the end of the range. Without this, the range extends to the latest committed version observed at build time.
Sourcepub fn with_ordering(self, commit_ordering: CommitOrdering) -> Self
pub fn with_ordering(self, commit_ordering: CommitOrdering) -> Self
Set the order in which CommitRange::commits yields commits. Defaults to
CommitOrdering::AscendingOrder.
Sourcepub fn build(&self, engine: &dyn Engine) -> DeltaResult<CommitRange>
pub fn build(&self, engine: &dyn Engine) -> DeltaResult<CommitRange>
List _delta_log/, validate contiguity, and produce a CommitRange. Performs
filesystem listing but no JSON reads.
Returns an error if the resolved version range is invalid (start > end), the listed commits are non-contiguous, or the requested start version is not present on the filesystem.
Auto Trait Implementations§
impl Freeze for CommitRangeBuilder
impl !RefUnwindSafe for CommitRangeBuilder
impl Send for CommitRangeBuilder
impl Sync for CommitRangeBuilder
impl Unpin for CommitRangeBuilder
impl UnsafeUnpin for CommitRangeBuilder
impl !UnwindSafe for CommitRangeBuilder
Blanket Implementations§
Source§impl<T> AsAny for T
impl<T> AsAny for T
Source§fn any_ref(&self) -> &(dyn Any + Send + Sync + 'static)
fn any_ref(&self) -> &(dyn Any + Send + Sync + 'static)
dyn Any reference to the object: Read moreSource§fn as_any(self: Arc<T>) -> Arc<dyn Any + Send + Sync> ⓘ
fn as_any(self: Arc<T>) -> Arc<dyn Any + Send + Sync> ⓘ
Arc<dyn Any> reference to the object: Read moreSource§fn into_any(self: Box<T>) -> Box<dyn Any + Send + Sync>
fn into_any(self: Box<T>) -> Box<dyn Any + Send + Sync>
Box<dyn Any>: Read moreSource§fn type_name(&self) -> &'static str
fn type_name(&self) -> &'static str
std::any::type_name, since Any does not provide it and
Any::type_id is useless as a debugging aid (its Debug is just a mess of hex digits).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<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§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