Deprecated: The each() function is deprecated. This message will be suppressed on further calls in /home/zhenxiangba/zhenxiangba.com/public_html/phproxy-improved-master/index.php on line 456
create_writer in datafusion::datasource::file_format::write - Rust
[go: Go Back, main page]

Function create_writer

Source
pub async fn create_writer(
    file_compression_type: FileCompressionType,
    location: &Path,
    object_store: Arc<dyn ObjectStore>,
) -> Result<Box<dyn AsyncWrite + Unpin + Send>, DataFusionError>
👎Deprecated since 48.0.0: Use ObjectWriterBuilder::new(…) instead
Expand description

Returns an AsyncWrite which writes to the given object store location with the specified compression.

The writer will have a default buffer size as chosen by BufWriter::new.

We drop the AbortableWrite struct and the writer will not try to cleanup on failure. Users can configure automatic cleanup with their cloud provider.