deltalake_core::kernel

Struct LogicalFile

Source
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<'_>

Source

pub fn path(&self) -> Cow<'_, str>

Path to the files storage location.

Source

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.

Source

pub fn size(&self) -> i64

File size stored on disk.

Source

pub fn modification_time(&self) -> i64

Last modification time of the file.

Source

pub fn modification_datetime(&self) -> DeltaResult<DateTime<Utc>>

Datetime of the last modification time of the file.

Source

pub fn partition_values(&self) -> DeltaResult<IndexMap<&'_ str, Scalar>>

The partition values for this logical file.

Source

pub fn deletion_vector(&self) -> Option<DeletionVectorView<'_>>

Defines a deletion vector

Source

pub fn num_records(&self) -> Option<usize>

The number of records stored in the data file.

Source

pub fn null_counts(&self) -> Option<Scalar>

Struct containing all available null counts for the columns in this file.

Source

pub fn min_values(&self) -> Option<Scalar>

Struct containing all available min values for the columns in this file.

Source

pub fn max_values(&self) -> Option<Scalar>

Struct containing all available max values for the columns in this file.

Source

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>

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<'a> PartialEq for LogicalFile<'a>

Source§

fn eq(&self, other: &LogicalFile<'a>) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl<'a> TryFrom<&LogicalFile<'a>> for ObjectMeta

Source§

type Error = DeltaTableError

The type returned in the event of a conversion error.
Source§

fn try_from(file_stats: &LogicalFile<'a>) -> Result<Self, Self::Error>

Performs the conversion.
Source§

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> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> IntoEither for T

Source§

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 more
Source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where F: FnOnce(&Self) -> bool,

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
Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

Source§

fn vzip(self) -> V

Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

impl<T> ErasedDestructor for T
where T: 'static,

Source§

impl<T> MaybeSendSync for T