Function mz_adapter::catalog::apply::apply_inverted_lookup

source ·
fn apply_inverted_lookup<K, V>(
    map: &mut BTreeMap<K, V>,
    key: &K,
    value: V,
    diff: StateDiff,
)
where K: Ord + Clone + Debug, V: PartialEq + Debug,
Expand description

Helper method to updated inverted lookup maps. The keys are generally names and the values are generally IDs.

Importantly, when retracting it’s expected that the existing value will match value exactly.