pub struct DataFileWriter<B: FileWriterBuilder, L: LocationGenerator, F: FileNameGenerator> { /* private fields */ }Expand description
A writer write data is within one spec/partition.
Trait Implementations§
Source§impl<B, L, F> CurrentFileStatus for DataFileWriter<B, L, F>
impl<B, L, F> CurrentFileStatus for DataFileWriter<B, L, F>
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, L: Debug + LocationGenerator, F: Debug + FileNameGenerator> Debug for DataFileWriter<B, L, F>
impl<B: Debug + FileWriterBuilder, L: Debug + LocationGenerator, F: Debug + FileNameGenerator> Debug for DataFileWriter<B, L, F>
Source§impl<B, L, F> IcebergWriter for DataFileWriter<B, L, F>
impl<B, L, F> IcebergWriter for DataFileWriter<B, L, F>
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, L, F> Freeze for DataFileWriter<B, L, F>
impl<B, L, F> !RefUnwindSafe for DataFileWriter<B, L, F>
impl<B, L, F> Send for DataFileWriter<B, L, F>
impl<B, L, F> Sync for DataFileWriter<B, L, F>
impl<B, L, F> Unpin for DataFileWriter<B, L, F>
impl<B, L, F> !UnwindSafe for DataFileWriter<B, L, F>
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> Downcast for Twhere
T: AsAny + ?Sized,
impl<T> Downcast for Twhere
T: AsAny + ?Sized,
§fn downcast_ref<T>(&self) -> Option<&T>where
T: AsAny,
fn downcast_ref<T>(&self) -> Option<&T>where
T: AsAny,
Forward to the method defined on the type
Any.§fn downcast_mut<T>(&mut self) -> Option<&mut T>where
T: AsAny,
fn downcast_mut<T>(&mut self) -> Option<&mut T>where
T: AsAny,
Forward to the method defined on the type
Any.§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