struct BloomFilterStatistics {
column_sbbf: HashMap<String, (Sbbf, Type)>,
}Expand description
Implements PruningStatistics for Parquet Split Block Bloom Filters (SBBF)
Fields§
§column_sbbf: HashMap<String, (Sbbf, Type)>Maps column name to the parquet bloom filter and parquet physical type
Implementations§
Source§impl BloomFilterStatistics
impl BloomFilterStatistics
Sourcefn check_scalar(sbbf: &Sbbf, value: &ScalarValue, parquet_type: &Type) -> bool
fn check_scalar(sbbf: &Sbbf, value: &ScalarValue, parquet_type: &Type) -> bool
Helper function for checking if [Sbbf] filter contains ScalarValue.
In case the type of scalar is not supported, returns true, assuming that the
value may be present.
Trait Implementations§
Source§impl PruningStatistics for BloomFilterStatistics
impl PruningStatistics for BloomFilterStatistics
Source§fn contained(
&self,
column: &Column,
values: &HashSet<ScalarValue>,
) -> Option<BooleanArray>
fn contained( &self, column: &Column, values: &HashSet<ScalarValue>, ) -> Option<BooleanArray>
Use bloom filters to determine if we are sure this column can not
possibly contain values
The contained API returns false if the bloom filters knows that ALL
of the values in a column are not present.
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 Freeze for BloomFilterStatistics
impl RefUnwindSafe for BloomFilterStatistics
impl Send for BloomFilterStatistics
impl Sync for BloomFilterStatistics
impl Unpin for BloomFilterStatistics
impl UnwindSafe for BloomFilterStatistics
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