pub struct LogicalFile<'a> { /* private fields */ }
Expand description
A view into the log data representing a single logical file.
This struct holds a pointer to a specific row in the log data and provides access to the information stored in that row by tracking references to the underlying arrays.
Additionally, references to some table metadata is tracked to provide higher level functionality, e.g. parsing partition values.
Implementations§
Source§impl LogicalFile<'_>
impl LogicalFile<'_>
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
Last modification time of the file.
Sourcepub fn modification_datetime(&self) -> DeltaResult<DateTime<Utc>>
pub fn modification_datetime(&self) -> DeltaResult<DateTime<Utc>>
Datetime of the last modification time of the file.
Sourcepub fn partition_values(&self) -> DeltaResult<IndexMap<&'_ str, Scalar>>
pub fn partition_values(&self) -> DeltaResult<IndexMap<&'_ str, Scalar>>
The partition values for this logical file.
Sourcepub fn deletion_vector(&self) -> Option<DeletionVectorView<'_>>
pub fn deletion_vector(&self) -> Option<DeletionVectorView<'_>>
Defines a deletion vector
Sourcepub fn num_records(&self) -> Option<usize>
pub fn num_records(&self) -> Option<usize>
The number of records stored in the data file.
Sourcepub fn null_counts(&self) -> Option<Scalar>
pub fn null_counts(&self) -> Option<Scalar>
Struct containing all available null counts for the columns in this file.
Sourcepub fn min_values(&self) -> Option<Scalar>
pub fn min_values(&self) -> Option<Scalar>
Struct containing all available min values for the columns in this file.
Sourcepub fn max_values(&self) -> Option<Scalar>
pub fn max_values(&self) -> Option<Scalar>
Struct containing all available max values for the columns in this file.
Sourcepub fn remove_action(&self, data_change: bool) -> Remove
pub fn remove_action(&self, data_change: bool) -> Remove
Create a remove action for this logical file.
Trait Implementations§
Source§impl<'a> Debug for LogicalFile<'a>
impl<'a> Debug for LogicalFile<'a>
Source§impl<'a> PartialEq for LogicalFile<'a>
impl<'a> PartialEq for LogicalFile<'a>
Source§impl<'a> TryFrom<&LogicalFile<'a>> for ObjectMeta
impl<'a> TryFrom<&LogicalFile<'a>> for ObjectMeta
Source§type Error = DeltaTableError
type Error = DeltaTableError
impl<'a> StructuralPartialEq for LogicalFile<'a>
Auto Trait Implementations§
impl<'a> Freeze for LogicalFile<'a>
impl<'a> !RefUnwindSafe for LogicalFile<'a>
impl<'a> Send for LogicalFile<'a>
impl<'a> Sync for LogicalFile<'a>
impl<'a> Unpin for LogicalFile<'a>
impl<'a> !UnwindSafe for LogicalFile<'a>
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
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