pub struct WriteSummary { /* private fields */ }Expand description
The result of a successfully finished writer.
Row, block, and sequence counts describe this writer session. A session
from crate::Writer::open reports only what it appended, so a reopened
file’s earlier rows and blocks are not counted again.
Self::bytes_written is the exception: it is the length of the whole
file, including anything earlier sessions wrote.
Implementations§
Source§impl WriteSummary
impl WriteSummary
Sourcepub fn rows_written(&self) -> u64
pub fn rows_written(&self) -> u64
The number of logical rows this session committed to data frames.
Sourcepub fn blocks_written(&self) -> u64
pub fn blocks_written(&self) -> u64
The number of data frames this session committed.
Sourcepub fn bytes_written(&self) -> u64
pub fn bytes_written(&self) -> u64
The final length of the whole file, including the prologue, the schema frame, and any frames written before this session.
Sourcepub fn last_sequence(&self) -> Option<u64>
pub fn last_sequence(&self) -> Option<u64>
The last data-frame sequence this session wrote, or None when it
appended no batch.
A reopened session that publishes nothing reports None even though the
file already holds data frames.
Sourcepub fn accounting(&self) -> WriteAccounting
pub fn accounting(&self) -> WriteAccounting
The final row and byte accounting snapshot. finish has published and
synchronized the final partial block, so buffered counts are zero.
Trait Implementations§
Source§impl Clone for WriteSummary
impl Clone for WriteSummary
Source§fn clone(&self) -> WriteSummary
fn clone(&self) -> WriteSummary
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more