Skip to main content

OptimizerCatalog

Trait OptimizerCatalog 

Source
pub trait OptimizerCatalog:
    Debug
    + Send
    + Sync {
    // Required methods
    fn get_entry(&self, id: &GlobalId) -> CatalogCollectionEntry;
    fn get_entry_by_item_id(&self, id: &CatalogItemId) -> &CatalogEntry;
    fn resolve_full_name(
        &self,
        name: &QualifiedItemName,
        conn_id: Option<&ConnectionId>,
    ) -> FullItemName;
    fn get_indexes_on(
        &self,
        id: GlobalId,
        cluster: ClusterId,
    ) -> Box<dyn Iterator<Item = (GlobalId, &Index)> + '_>;
}

Required Methods§

Source

fn get_entry(&self, id: &GlobalId) -> CatalogCollectionEntry

Source

fn get_entry_by_item_id(&self, id: &CatalogItemId) -> &CatalogEntry

Source

fn resolve_full_name( &self, name: &QualifiedItemName, conn_id: Option<&ConnectionId>, ) -> FullItemName

Source

fn get_indexes_on( &self, id: GlobalId, cluster: ClusterId, ) -> Box<dyn Iterator<Item = (GlobalId, &Index)> + '_>

Returns all indexes on the given object and cluster known in the catalog.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§