Struct datafusion::catalog::MemoryCatalogList
source · pub struct MemoryCatalogList {
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§
Trait Implementations§
source§impl CatalogList for MemoryCatalogList
impl CatalogList for MemoryCatalogList
source§fn as_any(&self) -> &dyn Any
fn as_any(&self) -> &dyn Any
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
Auto Trait Implementations§
impl !RefUnwindSafe for MemoryCatalogList
impl Send for MemoryCatalogList
impl Sync for MemoryCatalogList
impl Unpin for MemoryCatalogList
impl !UnwindSafe for MemoryCatalogList
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