pub struct PrunableStatistics { /* private fields */ }
Expand description
Prune a set of containers represented by their statistics.
Each Statistics
represents a “container” – some collection of data
that has statistics of its columns.
It is up to the caller to decide what each container represents. For
example, they can come from a file (e.g. PartitionedFile
) or a set of of
files (e.g. FileGroup
)
Implementations§
Source§impl PrunableStatistics
impl PrunableStatistics
Sourcepub fn new(statistics: Vec<Arc<Statistics>>, schema: SchemaRef) -> Self
pub fn new(statistics: Vec<Arc<Statistics>>, schema: SchemaRef) -> Self
Create a new instance of PrunableStatistics
.
Each Statistics
represents a container (e.g. a file or a partition of files).
The schema
is the schema of the data in the containers and should apply to all files.
Trait Implementations§
Source§impl Clone for PrunableStatistics
impl Clone for PrunableStatistics
Source§fn clone(&self) -> PrunableStatistics
fn clone(&self) -> PrunableStatistics
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl PruningStatistics for PrunableStatistics
impl PruningStatistics for PrunableStatistics
Source§fn min_values(&self, column: &Column) -> Option<ArrayRef>
fn min_values(&self, column: &Column) -> Option<ArrayRef>
Return the minimum values for the named column, if known. Read more
Source§fn max_values(&self, column: &Column) -> Option<ArrayRef>
fn max_values(&self, column: &Column) -> Option<ArrayRef>
Return the maximum values for the named column, if known. Read more
Source§fn num_containers(&self) -> usize
fn num_containers(&self) -> usize
Return the number of containers (e.g. Row Groups) being pruned with
these statistics. Read more
Source§fn null_counts(&self, column: &Column) -> Option<ArrayRef>
fn null_counts(&self, column: &Column) -> Option<ArrayRef>
Return the number of null values for the named column as an
UInt64Array
Read moreSource§fn row_counts(&self, column: &Column) -> Option<ArrayRef>
fn row_counts(&self, column: &Column) -> Option<ArrayRef>
Return the number of rows for the named column in each container
as an
UInt64Array
. Read moreSource§fn contained(
&self,
_column: &Column,
_values: &HashSet<ScalarValue>,
) -> Option<BooleanArray>
fn contained( &self, _column: &Column, _values: &HashSet<ScalarValue>, ) -> Option<BooleanArray>
Returns
BooleanArray
where each row represents information known
about specific literal values
in a column. Read moreAuto Trait Implementations§
impl Freeze for PrunableStatistics
impl !RefUnwindSafe for PrunableStatistics
impl Send for PrunableStatistics
impl Sync for PrunableStatistics
impl Unpin for PrunableStatistics
impl !UnwindSafe for PrunableStatistics
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
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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 more