pub struct DataFileWriter<B: FileWriterBuilder> { /* private fields */ }
Expand description
A writer write data is within one spec/partition.
Trait Implementations§
Source§impl<B: FileWriterBuilder> CurrentFileStatus for DataFileWriter<B>
impl<B: FileWriterBuilder> CurrentFileStatus for DataFileWriter<B>
Source§fn current_file_path(&self) -> String
fn current_file_path(&self) -> String
Get the current file path.
Source§fn current_row_num(&self) -> usize
fn current_row_num(&self) -> usize
Get the current file row number.
Source§fn current_written_size(&self) -> usize
fn current_written_size(&self) -> usize
Get the current file written size.
Source§impl<B: Debug + FileWriterBuilder> Debug for DataFileWriter<B>
impl<B: Debug + FileWriterBuilder> Debug for DataFileWriter<B>
Source§impl<B: FileWriterBuilder> IcebergWriter for DataFileWriter<B>
impl<B: FileWriterBuilder> IcebergWriter for DataFileWriter<B>
Source§fn write<'life0, 'async_trait>(
&'life0 mut self,
batch: RecordBatch,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn write<'life0, 'async_trait>(
&'life0 mut self,
batch: RecordBatch,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Write data to iceberg table.
Source§fn close<'life0, 'async_trait>(
&'life0 mut self,
) -> Pin<Box<dyn Future<Output = Result<Vec<DataFile>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn close<'life0, 'async_trait>(
&'life0 mut self,
) -> Pin<Box<dyn Future<Output = Result<Vec<DataFile>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Close the writer and return the written data files.
If close failed, the data written before maybe be lost. User may need to recreate the writer and rewrite the data again. Read more
Auto Trait Implementations§
impl<B> Freeze for DataFileWriter<B>
impl<B> RefUnwindSafe for DataFileWriter<B>
impl<B> Send for DataFileWriter<B>
impl<B> Sync for DataFileWriter<B>
impl<B> Unpin for DataFileWriter<B>
impl<B> UnwindSafe for DataFileWriter<B>
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
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§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