pub struct LogicalFileView { /* private fields */ }Expand description
Provides semantic, typed access to file metadata from Delta log replay.
This struct wraps a RecordBatch containing file data and provides zero-copy access to individual file entries through an index. It serves as a view into the kernel’s log replay results, offering convenient methods to extract file properties without unnecessary data copies.
Implementations§
Source§impl LogicalFileView
impl LogicalFileView
Sourcepub fn object_store_path(&self) -> Path
pub fn object_store_path(&self) -> Path
An object store Path to the file.
this tries to parse the file string and if that fails, it will return the string as is.
Sourcepub fn modification_time(&self) -> i64
pub fn modification_time(&self) -> i64
Returns the file modification time in milliseconds since Unix epoch.
Sourcepub fn modification_datetime(&self) -> DeltaResult<DateTime<Utc>>
pub fn modification_datetime(&self) -> DeltaResult<DateTime<Utc>>
Returns the file modification time as a UTC DateTime.
Sourcepub fn stats(&self) -> Option<String>
pub fn stats(&self) -> Option<String>
Returns the raw JSON statistics string for this file, if available.
Sourcepub fn partition_values(&self) -> Option<StructData>
pub fn partition_values(&self) -> Option<StructData>
Returns the parsed partition values as structured data.
Sourcepub fn partition_values_map(&self) -> HashMap<String, Option<String>>
pub fn partition_values_map(&self) -> HashMap<String, Option<String>>
Returns the raw partition value map stored in the log for this file.
This preserves all partition columns even when partitionValues_parsed was narrowed to the
predicate-referenced subset for data skipping.
Sourcepub fn num_records(&self) -> Option<usize>
pub fn num_records(&self) -> Option<usize>
Returns the raw file row count from Add-action statistics before deletion-vector filtering.
Returns None when the stat is missing or invalid for the current platform.
Sourcepub fn null_counts(&self) -> Option<Scalar>
pub fn null_counts(&self) -> Option<Scalar>
Returns null counts for all columns in this file as structured data.
Sourcepub fn min_values(&self) -> Option<Scalar>
pub fn min_values(&self) -> Option<Scalar>
Returns minimum values for all columns with statics in this file as structured data.
Sourcepub fn max_values(&self) -> Option<Scalar>
pub fn max_values(&self) -> Option<Scalar>
Returns maximum values for all columns in this file as structured data.
For timestamp columns, values are rounded up to handle microsecond truncation in checkpoint statistics.
Sourcepub fn deletion_vector_descriptor(&self) -> Option<DeletionVectorDescriptor>
pub fn deletion_vector_descriptor(&self) -> Option<DeletionVectorDescriptor>
Return the underlying DeletionVectorDescriptor if it exists.
NOTE: THis API may be removed in the future without deprecation warnings as the utilization of deletion vectors inside of delta-rs becomes more sophisticated.
Sourcepub fn add_action(&self) -> Add
👎Deprecated since 0.31.0: Use Arrow arrays directly instead of converting to Add actions.
pub fn add_action(&self) -> Add
Use Arrow arrays directly instead of converting to Add actions.
Converts this file view into an Add action for log operations.
Sourcepub fn remove_action(&self, data_change: bool) -> Remove
pub fn remove_action(&self, data_change: bool) -> Remove
Converts this file view into a Remove action for log operations.
Trait Implementations§
Source§impl Clone for LogicalFileView
impl Clone for LogicalFileView
Source§impl TryFrom<&LogicalFileView> for ObjectMeta
impl TryFrom<&LogicalFileView> for ObjectMeta
Source§type Error = DeltaTableError
type Error = DeltaTableError
Auto Trait Implementations§
impl !RefUnwindSafe for LogicalFileView
impl !UnwindSafe for LogicalFileView
impl Forget for LogicalFileView
impl Freeze for LogicalFileView
impl Send for LogicalFileView
impl Sync for LogicalFileView
impl Unpin for LogicalFileView
impl UnsafeUnpin for LogicalFileView
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<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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> ⓘ
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