#[non_exhaustive]pub struct PortableStatsSnapshot { /* private fields */ }Expand description
Decompressed sketch blobs associated with one table snapshot.
Implementations§
Source§impl PortableStatsSnapshot
impl PortableStatsSnapshot
pub fn new(snapshot_id: Option<i64>, blobs: Vec<PortableSketchBlob>) -> Self
pub const fn snapshot_id(&self) -> Option<i64>
pub fn blobs(&self) -> &[PortableSketchBlob]
Sourcepub fn blobs_for_field(
&self,
field_id: i32,
) -> impl Iterator<Item = &PortableSketchBlob>
pub fn blobs_for_field( &self, field_id: i32, ) -> impl Iterator<Item = &PortableSketchBlob>
Return every raw blob whose field list includes field_id.
Sourcepub fn validate(&self) -> Result<()>
pub fn validate(&self) -> Result<()>
Validate known single-column kinds and decode their payloads.
Unknown kinds are intentionally skipped according to the Puffin reader
contract. Duplicate (field, kind) entries are rejected as ambiguous.
Sourcepub fn decode_column(&self, field_id: i32) -> Result<Option<DecodedColumnStats>>
pub fn decode_column(&self, field_id: i32) -> Result<Option<DecodedColumnStats>>
Decode the supported sketches for one Iceberg field id.
Ok(None) means no supported HLL or equi-depth histogram is present.
Trait Implementations§
Source§impl Clone for PortableStatsSnapshot
impl Clone for PortableStatsSnapshot
Source§fn clone(&self) -> PortableStatsSnapshot
fn clone(&self) -> PortableStatsSnapshot
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for PortableStatsSnapshot
impl Debug for PortableStatsSnapshot
Source§impl Default for PortableStatsSnapshot
impl Default for PortableStatsSnapshot
Source§fn default() -> PortableStatsSnapshot
fn default() -> PortableStatsSnapshot
Returns the “default value” for a type. Read more
impl Eq for PortableStatsSnapshot
Source§impl PartialEq for PortableStatsSnapshot
impl PartialEq for PortableStatsSnapshot
impl StructuralPartialEq for PortableStatsSnapshot
Auto Trait Implementations§
impl Freeze for PortableStatsSnapshot
impl RefUnwindSafe for PortableStatsSnapshot
impl Send for PortableStatsSnapshot
impl Sync for PortableStatsSnapshot
impl Unpin for PortableStatsSnapshot
impl UnsafeUnpin for PortableStatsSnapshot
impl UnwindSafe for PortableStatsSnapshot
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