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:// (if the
target arch is not wasm32).
For example:
file:///my_pathwill return the default LocalFS stores3://bucket/pathwill return a store registered withs3://bucketif anyhdfs://host:port/pathwill return a store registered withhdfs://host:portif 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 Freeze for DefaultObjectStoreRegistry
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
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more