pub struct MemoryCatalogProviderList {
pub catalogs: DashMap<String, Arc<dyn CatalogProvider>>,
}Expand description
Simple in-memory list of catalogs
Fields§
§catalogs: DashMap<String, Arc<dyn CatalogProvider>>Collection of catalogs containing schemas and ultimately TableProviders
Implementations§
Source§impl MemoryCatalogProviderList
impl MemoryCatalogProviderList
Sourcepub fn new() -> MemoryCatalogProviderList
pub fn new() -> MemoryCatalogProviderList
Instantiates a new MemoryCatalogProviderList with an empty collection of catalogs
Trait Implementations§
Source§impl CatalogProviderList for MemoryCatalogProviderList
impl CatalogProviderList for MemoryCatalogProviderList
Source§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Returns the catalog list as
Any
so that it can be downcast to a specific implementation.Source§fn register_catalog(
&self,
name: String,
catalog: Arc<dyn CatalogProvider>,
) -> Option<Arc<dyn CatalogProvider>>
fn register_catalog( &self, name: String, catalog: Arc<dyn CatalogProvider>, ) -> Option<Arc<dyn CatalogProvider>>
Adds a new catalog to this catalog list
If a catalog of the same name existed before, it is replaced in the list and returned.
Source§fn catalog_names(&self) -> Vec<String>
fn catalog_names(&self) -> Vec<String>
Retrieves the list of available catalog names
Source§impl Debug for MemoryCatalogProviderList
impl Debug for MemoryCatalogProviderList
Source§impl Default for MemoryCatalogProviderList
impl Default for MemoryCatalogProviderList
Source§fn default() -> MemoryCatalogProviderList
fn default() -> MemoryCatalogProviderList
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for MemoryCatalogProviderList
impl !RefUnwindSafe for MemoryCatalogProviderList
impl Send for MemoryCatalogProviderList
impl Sync for MemoryCatalogProviderList
impl Unpin for MemoryCatalogProviderList
impl !UnwindSafe for MemoryCatalogProviderList
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
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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