Skip to main content

StatisticsReader

Struct StatisticsReader 

Source
pub struct StatisticsReader { /* private fields */ }
Expand description

High-level Statistics.db file reader

Implementations§

Source§

impl StatisticsReader

Source

pub async fn open(path: &Path, platform: Arc<Platform>) -> Result<Self>

Open and parse a Statistics.db file

Source

pub fn statistics(&self) -> &SSTableStatistics

Get the raw statistics data

Source

pub fn analyze(&self) -> StatisticsSummary

Get a human-readable summary analysis

Source

pub fn file_path(&self) -> &Path

Get the file path

Source

pub async fn validate_checksum(&self) -> Result<bool>

Validate checksum for parsed statistics

Source

pub fn matches_table(&self, table_id: &[u8; 16]) -> bool

Check if the Statistics.db corresponds to a specific table

Source

pub fn row_count(&self) -> u64

Get row count information

Source

pub fn live_row_count(&self) -> u64

Get live row count (excluding tombstones)

Source

pub fn timestamp_range(&self) -> (i64, i64)

Get timestamp range in microseconds

Source

pub fn compression_info(&self) -> (&str, f64)

Get compression information

Source

pub fn partition_info(&self) -> (u64, f64, u64)

Get partition statistics

Source

pub fn column_stats(&self, column_name: &str) -> Option<&ColumnStatistics>

Get column statistics by name

Source

pub fn column_names(&self) -> Vec<&str>

Get all column names with statistics

Source

pub fn has_ttl_data(&self) -> bool

Check if data has TTL information

Source

pub fn disk_usage(&self) -> (u64, u64, f64)

Get disk space usage information

Source

pub fn generate_report(&self, include_column_details: bool) -> String

Generate a detailed report

Source

pub fn compact_summary(&self) -> String

Get a compact summary for CLI display

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Allocation for T
where T: RefUnwindSafe + Send + Sync,

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
where ST: ?Sized, DT: ?Sized,

Source§

impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
where ST: ?Sized, DT: ?Sized,

Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> Pointable for T

Source§

const ALIGN: usize

The alignment of pointer.
Source§

type Init = T

The type for initializers.
Source§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
Source§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
Source§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
Source§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
Source§

impl<T> Read<Exclusive, BecauseExclusive> for T
where T: ?Sized,

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.