pub fn prepare_index_build(
        catalog: &CatalogState,
        index_id: &GlobalId,
    ) -> Option<(String, IndexDesc)> {
        let index_entry = catalog.get_by_id(&index_id);
        let index = match index_entry.item() {
            CatalogItem::Index(index) => index,
            _ => unreachable!("cannot create index dataflow on non-index"),
        };
        if !index.enabled {
            None
        } else {
            Some((
                index_entry.name().to_string(),
                dataflow_types::IndexDesc {
                    on_id: index.on,
                    keys: index.keys.clone(),
                },
            ))
        }
    }
/// Prepares the arguments to an index build dataflow, by interrogating the catalog.
///
/// Returns `None` if the index entry in the catalog in not enabled.
Prepares the arguments to an index build dataflow, by interrogating the catalog.
Returns `None` if the index entry in the catalog in not enabled.
Prepares the arguments to an index build dataflow by interrogating the catalog . Returns ` None ` if the index entry in the catalog in not enabled .
pub fn prepare_index_build(
        catalog: &CatalogState,
        index_id: &GlobalId,
    ) -> Option<(String, IndexDesc)> {
        let index_entry = catalog.get_by_id(&index_id);
        let index = match index_entry.item() {
            CatalogItem::Index(index) => index,
            _ => unreachable!("cannot create index dataflow on non-index"),
        };
        if !index.enabled {
            None
        } else {
            Some((
                index_entry.name().to_string(),
                dataflow_types::IndexDesc {
                    on_id: index.on,
                    keys: index.keys.clone(),
                },
            ))
        }
    }
pub fn prepare_index_build ( catalog : & CatalogState , index_id : & GlobalId , ) -> Option < ( String , IndexDesc ) > { let index_entry = catalog . get_by_id ( & index_id ) ; let index = match index_entry . item ( ) { CatalogItem :: Index ( index ) => index , _ => unreachable ! ( " " ) , } ; if ! index . enabled { None } else { Some ( ( index_entry . name ( ) . to_string ( ) , dataflow_types :: IndexDesc { on_id : index . on , keys : index . keys . clone ( ) , } , ) ) } }
Prepares the arguments to an index build dataflow, by interrogating the catalog.
Prepares the arguments to an index build dataflow by interrogating the catalog .
catalog
&CatalogState
index_id
&GlobalId
catalog
&CatalogState
index_id
&GlobalId