pub struct StreamingDataLoader { /* private fields */ }Expand description
Streaming data loader for large files
Implementations§
Source§impl StreamingDataLoader
impl StreamingDataLoader
Sourcepub fn with_chunk_size(self, chunk_size: usize) -> Self
pub fn with_chunk_size(self, chunk_size: usize) -> Self
Set chunk size for processing
Sourcepub fn with_parallel(self, parallel: bool) -> Self
pub fn with_parallel(self, parallel: bool) -> Self
Enable or disable parallel processing
Sourcepub fn with_validation(self, validate: bool) -> Self
pub fn with_validation(self, validate: bool) -> Self
Enable or disable data validation
Sourcepub fn process_file<P: AsRef<Path>>(
&self,
file_path: P,
) -> Result<Vec<OHLCV>, FormicaXError>
pub fn process_file<P: AsRef<Path>>( &self, file_path: P, ) -> Result<Vec<OHLCV>, FormicaXError>
Process file in chunks
Trait Implementations§
Source§impl Debug for StreamingDataLoader
impl Debug for StreamingDataLoader
Auto Trait Implementations§
impl Freeze for StreamingDataLoader
impl RefUnwindSafe for StreamingDataLoader
impl Send for StreamingDataLoader
impl Sync for StreamingDataLoader
impl Unpin for StreamingDataLoader
impl UnsafeUnpin for StreamingDataLoader
impl UnwindSafe for StreamingDataLoader
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