pub trait IndexOracle: Debug {
    fn indexes_on(
        &self,
        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.

Implementors