Apache OpenDAL™ object_store integration
object_store_opendal is an object_store implementation using opendal.
This crate can help you to access 30 more storage services with the same object_store API.
Useful Links
Examples
opendal_store_opendal depends on the opendal crate. Please make sure to always use the latest versions of both.
latest object_store_opendal
latest opendal
1. using object_store API to access S3
Add the following dependencies to your Cargo.toml with correct version:
[]
= "0.14.1"
= "xxx" # see the latest version above
= { = "xxx", = ["services-s3"] } # see the latest version above
Build OpendalStore via opendal::Operator:
use Arc;
use Bytes;
use Path;
use ObjectStoreExt;
use OpendalStore;
use S3;
use ;
async
Tune vectored reads
OpendalStore coalesces ranges separated by up to 1 MiB by default, matching
object_store::OBJECT_STORE_COALESCE_DEFAULT. Workloads that need to limit
over-fetching can configure the gap when constructing the store:
let object_store = new.with_get_ranges_gap;
A gap of 0 disables merging ranges separated by bytes. Overlapping or adjacent
ranges are still merged without over-fetching. Set an intermediate value to trade
fewer backend requests for additional bytes read. A gap of 0 can be useful for
HDFS scans that are sensitive to retaining large coalesced backing buffers.
WASM support
To build with wasm32-unknown-unknown target, you need to enable the send_wrapper feature:
Branding
The first and most prominent mentions must use the full form: Apache OpenDAL™ of the name for any individual usage (webpage, handout, slides, etc.) Depending on the context and writing style, you should use the full form of the name sufficiently often to ensure that readers clearly understand the association of both the OpenDAL project and the OpenDAL software product to the ASF as the parent organization.
For more details, see the Apache Product Name Usage Guide.
License and Trademarks
Licensed under the Apache License, Version 2.0: http://www.apache.org/licenses/LICENSE-2.0
Apache OpenDAL, OpenDAL, and Apache are either registered trademarks or trademarks of the Apache Software Foundation.