pub struct StreamingCsvProcessor { /* private fields */ }Expand description
A streaming CSV processor that visits rows one at a time without materializing the full DataFrame.
Useful for large datasets where only aggregate statistics are needed. Memory usage is O(ncols) regardless of the number of rows.
§Example
ⓘ
let csv = b"x,y\n1.0,2.0\n3.0,4.0\n5.0,6.0";
let mut proc = StreamingCsvProcessor::new(CsvConfig::default());
let (headers, sums, count) = proc.sum_columns(csv)?;Implementations§
Source§impl StreamingCsvProcessor
impl StreamingCsvProcessor
pub fn new(config: CsvConfig) -> Self
Auto Trait Implementations§
impl Freeze for StreamingCsvProcessor
impl RefUnwindSafe for StreamingCsvProcessor
impl Send for StreamingCsvProcessor
impl Sync for StreamingCsvProcessor
impl Unpin for StreamingCsvProcessor
impl UnsafeUnpin for StreamingCsvProcessor
impl UnwindSafe for StreamingCsvProcessor
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> 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