Trait mz_adapter::optimize::OptimizerCatalog

source ·
pub trait OptimizerCatalog:
    Debug
    + Send
    + Sync {
    // Required methods
    fn get_entry(&self, id: &GlobalId) -> &CatalogEntry;
    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) -> &CatalogEntry

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.

Implementors§