pub fn parse_url_opts<I, K, V>(
url: &Url,
options: I,
) -> Result<(Box<dyn ObjectStore>, Path), Error>Expand description
Create an ObjectStore based on the provided url and options
This method can be used to create an instance of one of the provided
ObjectStore implementations based on the URL scheme (see
ObjectStoreScheme for more details).
For example
file:///path/to/my/filewill return aLocalFileSysteminstances3://bucket/pathwill return anAmazonS3instance if theawsfeature is enabled.
Arguments:
url: The URL to parseoptions: A list of key-value pairs to pass to theObjectStorebuilder. Note different object stores accept different configuration options, so the options that are read depends on theurlvalue. One common pattern is to pass configuration information via process variables usingstd::env::vars.
Returns
- An
ObjectStoreof the corresponding type - The
Pathinto theObjectStoreof the addressed resource