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/pathorgcs://bucket/path - Azure Blob Storage:
az://account/container/pathorabfs://container@account.dfs.core.windows.net/path - HTTP/WebDAV:
http://orhttps:// - Local files:
file://pathor plain paths
ยงParameters
path: The URI string for the storage location.storage_options: OptionalHashMapcontaining 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)