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§fn current_schema(&self) -> SchemaRef
fn current_schema(&self) -> SchemaRef
Get the current schema used by the writer.
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
Source§impl<T> Downcast for T
impl<T> Downcast for T
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 moreSource§impl<T> Pointable for T
impl<T> Pointable for T
Source§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
Source§impl<T> ServiceExt for T
impl<T> ServiceExt for T
Source§fn map_response_body<F>(self, f: F) -> MapResponseBody<Self, F>where
Self: Sized,
fn map_response_body<F>(self, f: F) -> MapResponseBody<Self, F>where
Self: Sized,
Apply a transformation to the response body. Read more
Source§fn decompression(self) -> Decompression<Self>where
Self: Sized,
fn decompression(self) -> Decompression<Self>where
Self: Sized,
Decompress response bodies. Read more
Source§fn trace_for_http(self) -> Trace<Self, SharedClassifier<ServerErrorsAsFailures>>where
Self: Sized,
fn trace_for_http(self) -> Trace<Self, SharedClassifier<ServerErrorsAsFailures>>where
Self: Sized,
High level tracing that classifies responses using HTTP status codes. Read more
Source§fn trace_for_grpc(self) -> Trace<Self, SharedClassifier<GrpcErrorsAsFailures>>where
Self: Sized,
fn trace_for_grpc(self) -> Trace<Self, SharedClassifier<GrpcErrorsAsFailures>>where
Self: Sized,
High level tracing that classifies responses using gRPC headers. Read more