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_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 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