pub struct DataParser { /* private fields */ }Expand description
数据解析器
Implementations§
Source§impl DataParser
impl DataParser
Sourcepub fn with_config(config: ParserConfig) -> Self
pub fn with_config(config: ParserConfig) -> Self
使用自定义配置创建解析器
Sourcepub fn read_csv_lazy(&self, path: &Path) -> Result<LazyFrame>
pub fn read_csv_lazy(&self, path: &Path) -> Result<LazyFrame>
读取 CSV 文件并返回 LazyFrame
Sourcepub fn read_parquet_lazy(&self, path: &Path) -> Result<LazyFrame>
pub fn read_parquet_lazy(&self, path: &Path) -> Result<LazyFrame>
读取 Parquet 文件并返回 LazyFrame
Sourcepub fn read_parquet(&self, path: &Path) -> Result<DataFrame>
pub fn read_parquet(&self, path: &Path) -> Result<DataFrame>
读取 Parquet 并收集为 DataFrame
Trait Implementations§
Auto Trait Implementations§
impl Freeze for DataParser
impl RefUnwindSafe for DataParser
impl Send for DataParser
impl Sync for DataParser
impl Unpin for DataParser
impl UnsafeUnpin for DataParser
impl UnwindSafe for DataParser
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> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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