MCPcopy Create free account
hub / github.com/apache/datafusion / insert_all_owned

Method insert_all_owned

datafusion/optimizer/src/join_key_set.rs:98–107  ·  view source on GitHub ↗

Same as [`Self::insert_all`] but avoids cloning expressions if they are already owned returns true if any of the pairs were inserted

(
        &mut self,
        iter: impl IntoIterator<Item = (Expr, Expr)>,
    )

Source from the content-addressed store, hash-verified

96 ///
97 /// returns true if any of the pairs were inserted
98 pub fn insert_all_owned(
99 &mut self,
100 iter: impl IntoIterator<Item = (Expr, Expr)>,
101 ) -> bool {
102 let mut inserted = false;
103 for (left, right) in iter.into_iter() {
104 inserted |= self.insert_owned(left, right);
105 }
106 inserted
107 }
108
109 /// Inserts any join keys that are common to both `s1` and `s2` into self
110 pub fn insert_intersection(&mut self, s1: &JoinKeySet, s2: &JoinKeySet) {

Callers 2

test_insert_all_ownedFunction · 0.80
flatten_join_inputsFunction · 0.80

Calls 2

insert_ownedMethod · 0.80
into_iterMethod · 0.45

Tested by 1

test_insert_all_ownedFunction · 0.64