pub struct SheetStreamReader<'a, R: BufRead> { /* private fields */ }Expand description
Forward-only streaming reader for worksheet XML.
Reads rows in batches without deserializing the entire worksheet into memory. The reader borrows the shared string table for resolving string cell references.
Implementations§
Source§impl<'a, R: BufRead> SheetStreamReader<'a, R>
impl<'a, R: BufRead> SheetStreamReader<'a, R>
Sourcepub fn new(source: R, sst: &'a SharedStringTable) -> Self
pub fn new(source: R, sst: &'a SharedStringTable) -> Self
Create a new streaming reader over the given BufRead source.
sst is a reference to the shared string table for resolving
shared string cell values. Optional configuration (row limit, date
interpretation) is applied via the builder methods.
Sourcepub fn row_limit(self, limit: Option<u32>) -> Self
pub fn row_limit(self, limit: Option<u32>) -> Self
Cap the number of rows produced by this reader. None means no
limit (the default).
Sourcepub fn date_promotion(
self,
interpretation: DateInterpretation,
style_is_date: Vec<bool>,
) -> Self
pub fn date_promotion( self, interpretation: DateInterpretation, style_is_date: Vec<bool>, ) -> Self
Configure how date-formatted number cells are interpreted.
style_is_date is a per-style boolean produced by
crate::style::compute_style_is_date; it is indexed by each
cell’s s attribute. Empty vectors are equivalent to “no style
was a date format”, which is the safe default.