pub trait AsyncFileWriter: Send {
// Required methods
fn write(&mut self, bs: Bytes) -> BoxFuture<'_, Result<()>>;
fn complete(&mut self) -> BoxFuture<'_, Result<()>>;
}
Expand description
The asynchronous interface used by AsyncArrowWriter
to write parquet files.
Required Methods§
Sourcefn write(&mut self, bs: Bytes) -> BoxFuture<'_, Result<()>>
fn write(&mut self, bs: Bytes) -> BoxFuture<'_, Result<()>>
Write the provided bytes to the underlying writer
The underlying writer CAN decide to buffer the data or write it immediately. This design allows the writer implementer to control the buffering and I/O scheduling.
The underlying writer MAY implement retry logic to prevent breaking users write process.