pub struct ZarrIoStats {
pub metadata_bytes: AtomicU64,
pub coord_bytes: AtomicU64,
pub data_bytes: AtomicU64,
pub disk_bytes: AtomicU64,
pub coord_arrays: AtomicU64,
pub data_arrays: AtomicU64,
pub metadata_nanos: AtomicU64,
pub coord_nanos: AtomicU64,
pub data_nanos: AtomicU64,
}Expand description
I/O statistics collected during Zarr reads.
Uses atomic counters for thread-safety without locks, which is important for async/multi-threaded execution in DataFusion.
Fields§
§metadata_bytes: AtomicU64§coord_bytes: AtomicU64§data_bytes: AtomicU64§disk_bytes: AtomicU64§coord_arrays: AtomicU64§data_arrays: AtomicU64§metadata_nanos: AtomicU64§coord_nanos: AtomicU64§data_nanos: AtomicU64Implementations§
Source§impl ZarrIoStats
impl ZarrIoStats
pub fn new() -> Self
pub fn total_bytes(&self) -> u64
pub fn total_arrays(&self) -> u64
pub fn metadata_time(&self) -> Duration
pub fn coord_time(&self) -> Duration
pub fn data_time(&self) -> Duration
Sourcepub fn record_metadata(&self, bytes: u64, duration: Duration)
pub fn record_metadata(&self, bytes: u64, duration: Duration)
Record metadata read stats
Sourcepub fn record_coord(&self, bytes: u64, duration: Duration)
pub fn record_coord(&self, bytes: u64, duration: Duration)
Record coordinate array read stats
Sourcepub fn record_data(&self, bytes: u64, duration: Duration)
pub fn record_data(&self, bytes: u64, duration: Duration)
Record data variable read stats
Sourcepub fn record_disk_read(&self, bytes: u64)
pub fn record_disk_read(&self, bytes: u64)
Record disk bytes read (actual I/O)
Sourcepub fn total_disk_bytes(&self) -> u64
pub fn total_disk_bytes(&self) -> u64
Get total disk bytes read
Trait Implementations§
Source§impl Debug for ZarrIoStats
impl Debug for ZarrIoStats
Source§impl Default for ZarrIoStats
impl Default for ZarrIoStats
Source§fn default() -> ZarrIoStats
fn default() -> ZarrIoStats
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl !Freeze for ZarrIoStats
impl RefUnwindSafe for ZarrIoStats
impl Send for ZarrIoStats
impl Sync for ZarrIoStats
impl Unpin for ZarrIoStats
impl UnwindSafe for ZarrIoStats
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
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§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