pub struct RowTrackingDomainMetadata { /* private fields */ }Available on crate feature
test-utils only.Implementations§
Source§impl RowTrackingDomainMetadata
impl RowTrackingDomainMetadata
Sourcepub fn get_high_water_mark(
snapshot: &Snapshot,
engine: &dyn Engine,
) -> DeltaResult<Option<i64>>
pub fn get_high_water_mark( snapshot: &Snapshot, engine: &dyn Engine, ) -> DeltaResult<Option<i64>>
Retrieves the row ID high water mark from the Snapshot’s row tracking domain metadata.
This method searches through the snapshot’s log segment for domain metadata actions with the row tracking domain name and extracts the high water mark value.
§Returns
Returns Ok(Some(high_water_mark)) if row tracking domain metadata is found,
Ok(None) if no row tracking domain metadata exists, or an error if the
metadata cannot be parsed or accessed.
§Errors
This method will return an error if:
- The domain metadata configuration cannot be read from the log segment
- The domain metadata JSON cannot be deserialized into
RowTrackingDomainMetadata
Trait Implementations§
Source§impl Debug for RowTrackingDomainMetadata
impl Debug for RowTrackingDomainMetadata
Source§impl<'de> Deserialize<'de> for RowTrackingDomainMetadata
impl<'de> Deserialize<'de> for RowTrackingDomainMetadata
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl TryFrom<RowTrackingDomainMetadata> for DomainMetadata
impl TryFrom<RowTrackingDomainMetadata> for DomainMetadata
Source§fn try_from(metadata: RowTrackingDomainMetadata) -> DeltaResult<Self>
fn try_from(metadata: RowTrackingDomainMetadata) -> DeltaResult<Self>
Performs the conversion.
Auto Trait Implementations§
impl Freeze for RowTrackingDomainMetadata
impl RefUnwindSafe for RowTrackingDomainMetadata
impl Send for RowTrackingDomainMetadata
impl Sync for RowTrackingDomainMetadata
impl Unpin for RowTrackingDomainMetadata
impl UnsafeUnpin for RowTrackingDomainMetadata
impl UnwindSafe for RowTrackingDomainMetadata
Blanket Implementations§
impl<T> Allocation for T
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)
Obtains a
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> ⓘ
Obtains an
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>
Converts the object to
Box<dyn Any>: Read moreSource§fn type_name(&self) -> &'static str
fn type_name(&self) -> &'static str
Convenient wrapper for
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
Mutably borrows from an owned value. Read more
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<T> FoldWithOption for T
impl<T> FoldWithOption for T
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 moreSource§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
Source§impl<KernelType, ArrowType> TryIntoArrow<ArrowType> for KernelTypewhere
ArrowType: TryFromKernel<KernelType>,
impl<KernelType, ArrowType> TryIntoArrow<ArrowType> for KernelTypewhere
ArrowType: TryFromKernel<KernelType>,
Source§fn try_into_arrow(self) -> Result<ArrowType, ArrowError>
fn try_into_arrow(self) -> Result<ArrowType, ArrowError>
Available on crate feature
arrow-conversion and (crate features arrow-conversion or declarative-plans or default-engine-base) only.Source§impl<KernelType, ArrowType> TryIntoKernel<KernelType> for ArrowTypewhere
KernelType: TryFromArrow<ArrowType>,
impl<KernelType, ArrowType> TryIntoKernel<KernelType> for ArrowTypewhere
KernelType: TryFromArrow<ArrowType>,
Source§fn try_into_kernel(self) -> Result<KernelType, ArrowError>
fn try_into_kernel(self) -> Result<KernelType, ArrowError>
Available on crate feature
arrow-conversion and (crate features arrow-conversion or declarative-plans or default-engine-base) only.