pub struct DataExporter { /* private fields */ }Expand description
数据导出器
Implementations§
Source§impl DataExporter
impl DataExporter
Sourcepub fn with_config(config: ExportConfig) -> Self
pub fn with_config(config: ExportConfig) -> Self
使用自定义配置创建导出器
Sourcepub fn export(
&self,
df: &mut DataFrame,
path: &Path,
format: Option<ExportFormat>,
) -> Result<u64>
pub fn export( &self, df: &mut DataFrame, path: &Path, format: Option<ExportFormat>, ) -> Result<u64>
Sourcepub fn export_streaming(
&self,
lf: LazyFrame,
path: &Path,
format: Option<ExportFormat>,
) -> Result<u64>
pub fn export_streaming( &self, lf: LazyFrame, path: &Path, format: Option<ExportFormat>, ) -> Result<u64>
流式导出大文件(分块写入)
适用于 GB 级数据,内存占用低
Sourcepub fn export_to_stdout(
&self,
df: &mut DataFrame,
format: ExportFormat,
) -> Result<()>
pub fn export_to_stdout( &self, df: &mut DataFrame, format: ExportFormat, ) -> Result<()>
导出到标准输出(用于管道)
Trait Implementations§
Auto Trait Implementations§
impl Freeze for DataExporter
impl RefUnwindSafe for DataExporter
impl Send for DataExporter
impl Sync for DataExporter
impl Unpin for DataExporter
impl UnsafeUnpin for DataExporter
impl UnwindSafe for DataExporter
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