pub struct DefaultObjectStoreRegistry { /* private fields */ }
Expand description
The default ObjectStoreRegistry
Implementations§
source§impl DefaultObjectStoreRegistry
impl DefaultObjectStoreRegistry
sourcepub fn new() -> Self
pub fn new() -> Self
This will register LocalFileSystem
to handle file://
paths
Trait Implementations§
source§impl Debug for DefaultObjectStoreRegistry
impl Debug for DefaultObjectStoreRegistry
source§impl Default for DefaultObjectStoreRegistry
impl Default for DefaultObjectStoreRegistry
source§impl ObjectStoreRegistry for DefaultObjectStoreRegistry
impl ObjectStoreRegistry for DefaultObjectStoreRegistry
Stores are registered based on the scheme, host and port of the provided URL
with a LocalFileSystem::new
automatically registered for file://
For example:
file:///my_path
will return the default LocalFS stores3://bucket/path
will return a store registered withs3://bucket
if anyhdfs://host:port/path
will return a store registered withhdfs://host:port
if any
source§fn register_store(
&self,
url: &Url,
store: Arc<dyn ObjectStore>
) -> Option<Arc<dyn ObjectStore>>
fn register_store( &self, url: &Url, store: Arc<dyn ObjectStore> ) -> Option<Arc<dyn ObjectStore>>
If a store with the same key existed before, it is replaced and returned
Auto Trait Implementations§
impl !RefUnwindSafe for DefaultObjectStoreRegistry
impl Send for DefaultObjectStoreRegistry
impl Sync for DefaultObjectStoreRegistry
impl Unpin for DefaultObjectStoreRegistry
impl !UnwindSafe for DefaultObjectStoreRegistry
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more