Skip to main content

LogDataHandler

Struct LogDataHandler 

Source
pub struct LogDataHandler<'a> { /* private fields */ }
Expand description

Provides semanitc access to the log data.

This is a helper struct that provides access to the log data in a more semantic way to avid the necessiity of knowing the exact layout of the underlying log data.

Implementations§

Source§

impl<'a> LogDataHandler<'a>

Source

pub fn num_files(&self) -> usize

The number of files in the log data. Returns the total number of files represented across all underlying record batches.

Source

pub fn iter(&self) -> impl Iterator<Item = LogicalFileView> + '_

Iterate over each file as a LogicalFileView without materializing all of them at once.

Trait Implementations§

Source§

impl<'a> Clone for LogDataHandler<'a>

Source§

fn clone(&self) -> Self

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl DataFusionMixins for LogDataHandler<'_>

Source§

fn read_schema(&self) -> ArrowSchemaRef

The physical datafusion schema of a table
Source§

fn input_schema(&self) -> ArrowSchemaRef

Get the table schema as an ArrowSchemaRef
Source§

fn parse_predicate_expression( &self, expr: impl AsRef<str>, session: &dyn Session, ) -> DeltaResult<Expr>

Parse an expression string into a datafusion Expr
Source§

impl IntoIterator for LogDataHandler<'_>

Source§

type Item = LogicalFileView

The type of the elements being iterated over.
Source§

type IntoIter = Box<dyn Iterator<Item = <LogDataHandler<'_> as IntoIterator>::Item>>

Which kind of iterator are we turning this into?
Source§

fn into_iter(self) -> Self::IntoIter

Creates an iterator from a value. Read more
Source§

impl PruningStatistics for LogDataHandler<'_>

Source§

fn min_values(&self, column: &Column) -> Option<ArrayRef>

return the minimum values for the named column, if known. Note: the returned array must contain num_containers() rows

Source§

fn max_values(&self, column: &Column) -> Option<ArrayRef>

return the maximum values for the named column, if known. Note: the returned array must contain num_containers() rows.

Source§

fn num_containers(&self) -> usize

return the number of containers (e.g. row groups) being pruned with these statistics

Source§

fn null_counts(&self, column: &Column) -> Option<ArrayRef>

return the number of null values for the named column as an Option<UInt64Array>.

Note: the returned array must contain num_containers() rows.

Source§

fn row_counts(&self) -> Option<ArrayRef>

return the number of rows in each container as an Option<UInt64Array>.

Note: the returned array must contain num_containers() rows

Source§

fn contained( &self, column: &Column, value: &HashSet<ScalarValue>, ) -> Option<BooleanArray>

Returns BooleanArray where each row represents information known about specific literal values in a column. Read more

Auto Trait Implementations§

§

impl<'a> !RefUnwindSafe for LogDataHandler<'a>

§

impl<'a> !UnwindSafe for LogDataHandler<'a>

§

impl<'a> Forget for LogDataHandler<'a>

§

impl<'a> Freeze for LogDataHandler<'a>

§

impl<'a> Send for LogDataHandler<'a>

§

impl<'a> Sync for LogDataHandler<'a>

§

impl<'a> Unpin for LogDataHandler<'a>

§

impl<'a> UnsafeUnpin for LogDataHandler<'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> AsAny for T
where T: Any + Send + Sync,

Source§

fn any_ref(&self) -> &(dyn Any + Send + Sync + 'static)

Obtains a dyn Any reference to the object: Read more
Source§

fn as_any(self: Arc<T>) -> Arc<dyn Any + Send + Sync> ⓘ

Obtains an Arc<dyn Any> reference to the object: Read more
Source§

fn into_any(self: Box<T>) -> Box<dyn Any + Send + Sync>

Converts the object to Box<dyn Any>: Read more
Source§

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> 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<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
where ST: ?Sized, DT: ?Sized,

Source§

impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
where ST: ?Sized, DT: ?Sized,

Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<I, T> CollectInto<T> for I

Source§

fn collect_into(self) -> T

Collects this iterable into a T
Source§

impl<T> FoldWithOption for T

Source§

fn fold_with<U>(self, opt: Option<U>, f: impl FnOnce(Self, U) -> Self) -> Self

Applies an optional fold operation f to self if opt is Some; otherwise returns self unchanged. Read more
Source§

fn try_fold_with<U, E>( self, opt: Option<U>, f: impl FnOnce(Self, U) -> Result<Self, E>, ) -> Result<Self, E>

Fallible fold_with: applies Result-returning f to self if opt is Some, otherwise returns self unchanged (wrapped in Ok).
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> PolicyExt for T
where T: ?Sized,

Source§

fn and<P, B, E>(self, other: P) -> And<T, P>
where T: Sized + Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns Action::Follow only if self and other return Action::Follow. Read more
Source§

fn or<P, B, E>(self, other: P) -> Or<T, P>
where T: Sized + Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns Action::Follow if either self or other returns Action::Follow. Read more
Source§

impl<T> Read<Exclusive, BecauseExclusive> for T
where T: ?Sized,

Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

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

Source§

type Error = !

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

fn try_from(value: U) -> Result<T, !>

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<KernelType, ArrowType> TryIntoArrow<ArrowType> for KernelType
where ArrowType: TryFromKernel<KernelType>,

Source§

fn try_into_arrow(self) -> Result<ArrowType, ArrowError>

Source§

impl<KernelType, ArrowType> TryIntoKernel<KernelType> for ArrowType
where KernelType: TryFromArrow<ArrowType>,

Source§

fn try_into_kernel(self) -> Result<KernelType, ArrowError>

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