pub trait IndexOracle: Debug {
    fn indexes_on(
        id: GlobalId
    ) -> Box<dyn Iterator<Item = &[MirScalarExpr]> + '_>; }
Expand description

A trait for a type that can answer questions about what indexes exist.

Required Methods§

Returns an iterator over the indexes that exist on the identified collection.

Each index is described by the list of key expressions. If no indexes exist for the identified collection, or if the identified collection is unknown, the returned iterator will be empty.