pub struct WriteAccounting { /* private fields */ }Expand description
A point-in-time view of writer data accounting.
Row counts are logical rows. Byte counts are the estimated raw serialized
data-frame lengths used for bounded buffering, so they are independent of
both the selected compression codec and the selected encoding policy: a
column that Zstandard or an adaptive transform shrinks is still counted at
its raw size. They describe how much the writer is holding and has accepted,
not how much it wrote. WriteSummary::bytes_written is the actual final
file length, including the prologue and schema frame.
Every count here belongs to one writer session. A writer from
crate::Writer::open starts them all at zero, whatever the file already
contains.
Implementations§
Source§impl WriteAccounting
impl WriteAccounting
Sourcepub fn buffered_rows(&self) -> u64
pub fn buffered_rows(&self) -> u64
Rows currently held in the in-memory block buffer.
Sourcepub fn buffered_bytes(&self) -> u64
pub fn buffered_bytes(&self) -> u64
Estimated raw bytes currently held in the in-memory block buffer.
Sourcepub fn published_rows(&self) -> u64
pub fn published_rows(&self) -> u64
Rows whose complete frames have been written to the sink.
Sourcepub fn published_bytes(&self) -> u64
pub fn published_bytes(&self) -> u64
Estimated raw bytes represented by published data blocks.
Sourcepub fn durable_rows(&self) -> u64
pub fn durable_rows(&self) -> u64
Rows covered by a completed sink synchronization.
Sourcepub fn durable_bytes(&self) -> u64
pub fn durable_bytes(&self) -> u64
Estimated raw bytes covered by a completed sink synchronization.
Sourcepub fn total_rows(&self) -> u64
pub fn total_rows(&self) -> u64
All rows accepted by the writer, whether buffered or published.
Sourcepub fn total_bytes(&self) -> u64
pub fn total_bytes(&self) -> u64
All estimated raw bytes accepted by the writer, whether buffered or published.
Trait Implementations§
Source§impl Clone for WriteAccounting
impl Clone for WriteAccounting
Source§fn clone(&self) -> WriteAccounting
fn clone(&self) -> WriteAccounting
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more