pub struct FileScanTaskColumnStats { /* private fields */ }Expand description
Column statistics of a FileScanTask’s data file, keyed by field id and limited to the
columns requested for the scan.
A requested column missing from a map has unknown statistics of that kind. Bounds are inclusive, and all statistics cover the whole file, not the scan’s filter, delete files or task splits.
A manifest written before a type promotion stores the narrower type, so bounds are promoted to
the column’s type in the scan schema: int to long, float to double, and a decimal to a
wider precision with the same scale. A bound of any other type is omitted.
Implementations§
Source§impl FileScanTaskColumnStats
impl FileScanTaskColumnStats
Sourcepub fn builder() -> FileScanTaskColumnStatsBuilder<((), (), (), (), (), ())>
pub fn builder() -> FileScanTaskColumnStatsBuilder<((), (), (), (), (), ())>
Create a builder for building FileScanTaskColumnStats.
On the builder, call .column_sizes(...)(optional), .value_counts(...)(optional), .null_value_counts(...)(optional), .nan_value_counts(...)(optional), .lower_bounds(...)(optional), .upper_bounds(...)(optional) to set the values of the fields.
Finally, call .build() to create the instance of FileScanTaskColumnStats.
Source§impl FileScanTaskColumnStats
impl FileScanTaskColumnStats
Sourcepub fn column_sizes(&self) -> &HashMap<i32, u64>
pub fn column_sizes(&self) -> &HashMap<i32, u64>
Returns the size in bytes of each column’s data in the file, per field id.
Sourcepub fn value_counts(&self) -> &HashMap<i32, u64>
pub fn value_counts(&self) -> &HashMap<i32, u64>
Returns the number of values per field id, including nulls and NaNs.
Sourcepub fn null_value_counts(&self) -> &HashMap<i32, u64>
pub fn null_value_counts(&self) -> &HashMap<i32, u64>
Returns the number of null values per field id.
Sourcepub fn nan_value_counts(&self) -> &HashMap<i32, u64>
pub fn nan_value_counts(&self) -> &HashMap<i32, u64>
Returns the number of NaN values per field id.
Sourcepub fn lower_bounds(&self) -> &HashMap<i32, Datum>
pub fn lower_bounds(&self) -> &HashMap<i32, Datum>
Returns the inclusive lower bound per field id.
Sourcepub fn upper_bounds(&self) -> &HashMap<i32, Datum>
pub fn upper_bounds(&self) -> &HashMap<i32, Datum>
Returns the inclusive upper bound per field id.
Trait Implementations§
Source§impl Clone for FileScanTaskColumnStats
impl Clone for FileScanTaskColumnStats
Source§fn clone(&self) -> FileScanTaskColumnStats
fn clone(&self) -> FileScanTaskColumnStats
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for FileScanTaskColumnStats
impl Debug for FileScanTaskColumnStats
Source§impl Default for FileScanTaskColumnStats
impl Default for FileScanTaskColumnStats
Source§fn default() -> FileScanTaskColumnStats
fn default() -> FileScanTaskColumnStats
Source§impl<'de> Deserialize<'de> for FileScanTaskColumnStats
impl<'de> Deserialize<'de> for FileScanTaskColumnStats
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Source§impl PartialEq for FileScanTaskColumnStats
impl PartialEq for FileScanTaskColumnStats
Source§impl Serialize for FileScanTaskColumnStats
impl Serialize for FileScanTaskColumnStats
impl StructuralPartialEq for FileScanTaskColumnStats
Auto Trait Implementations§
impl Freeze for FileScanTaskColumnStats
impl RefUnwindSafe for FileScanTaskColumnStats
impl Send for FileScanTaskColumnStats
impl Sync for FileScanTaskColumnStats
impl Unpin for FileScanTaskColumnStats
impl UnsafeUnpin for FileScanTaskColumnStats
impl UnwindSafe for FileScanTaskColumnStats
Blanket Implementations§
§impl<U> As for U
impl<U> As for U
§fn as_<T>(self) -> Twhere
T: CastFrom<U>,
fn as_<T>(self) -> Twhere
T: CastFrom<U>,
self to type T. The semantics of numeric casting with the as operator are followed, so <T as As>::as_::<U> can be used in the same way as T as U for numeric conversions. Read moreSource§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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> Downcast for Twhere
T: AsAny + ?Sized,
impl<T> Downcast for Twhere
T: AsAny + ?Sized,
§fn downcast_ref<T>(&self) -> Option<&T>where
T: AsAny,
fn downcast_ref<T>(&self) -> Option<&T>where
T: AsAny,
Any.§fn downcast_mut<T>(&mut self) -> Option<&mut T>where
T: AsAny,
fn downcast_mut<T>(&mut self) -> Option<&mut T>where
T: AsAny,
Any.§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> ⓘ
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> ⓘ
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