struct PagesPruningStatistics<'a> {
row_group_index: usize,
row_group_metadatas: &'a [RowGroupMetaData],
converter: StatisticsConverter<'a>,
column_index: &'a ParquetColumnIndex,
offset_index: &'a ParquetOffsetIndex,
page_offsets: &'a Vec<PageLocation>,
}Expand description
Implement PruningStatistics for one column’s PageIndex (column_index + offset_index)
Fields§
§row_group_index: usize§row_group_metadatas: &'a [RowGroupMetaData]§converter: StatisticsConverter<'a>§column_index: &'a ParquetColumnIndex§offset_index: &'a ParquetOffsetIndex§page_offsets: &'a Vec<PageLocation>Implementations§
Source§impl<'a> PagesPruningStatistics<'a>
impl<'a> PagesPruningStatistics<'a>
Sourcefn try_new(
row_group_index: usize,
converter: StatisticsConverter<'a>,
parquet_metadata: &'a ParquetMetaData,
) -> Option<Self>
fn try_new( row_group_index: usize, converter: StatisticsConverter<'a>, parquet_metadata: &'a ParquetMetaData, ) -> Option<Self>
Creates a new PagesPruningStatistics for a column in a row group, if
possible.
Returns None if the parquet_metadata does not have sufficient
information to create the statistics.
Sourcefn page_row_counts(&self) -> Option<Vec<usize>>
fn page_row_counts(&self) -> Option<Vec<usize>>
return the row counts in each data page, if possible.
Trait Implementations§
Source§impl<'a> Debug for PagesPruningStatistics<'a>
impl<'a> Debug for PagesPruningStatistics<'a>
Source§impl PruningStatistics for PagesPruningStatistics<'_>
impl PruningStatistics for PagesPruningStatistics<'_>
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 moreAuto Trait Implementations§
impl<'a> Freeze for PagesPruningStatistics<'a>
impl<'a> RefUnwindSafe for PagesPruningStatistics<'a>
impl<'a> Send for PagesPruningStatistics<'a>
impl<'a> Sync for PagesPruningStatistics<'a>
impl<'a> Unpin for PagesPruningStatistics<'a>
impl<'a> UnwindSafe for PagesPruningStatistics<'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
Mutably borrows from an owned value. Read more
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§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>
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