pub fn create_object_store_from_path(
path: &str,
storage_options: Option<HashMap<String, String>>,
) -> Result<(Arc<dyn ObjectStore>, String, String)>
Expand description
Creates an object store from a URI string with optional storage options.
Supports multiple cloud storage providers:
- AWS S3:
s3://bucket/path
- Google Cloud Storage:
gs://bucket/path
orgcs://bucket/path
- Azure Blob Storage:
azure://account/container/path
orabfs://container@account.dfs.core.windows.net/path
- HTTP/WebDAV:
http://
orhttps://
- Local files:
file://path
or plain paths
§Parameters
path
: The URI string for the storage location.storage_options
: OptionalHashMap
containing storage-specific configuration options:- For S3:
endpoint_url
, region,access_key_id
,secret_access_key
,session_token
, etc. - For GCS:
service_account_path
,service_account_key
,project_id
, etc. - For Azure:
account_name
,account_key
,sas_token
, etc.
- For S3:
Returns a tuple of (ObjectStore
, base_path
, normalized_uri
)