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

Method insert_all

datafusion/optimizer/src/join_key_set.rs:83–92  ·  view source on GitHub ↗

Inserts potentially many join keys into the set, copying only when necessary returns true if any of the pairs were inserted

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

Source from the content-addressed store, hash-verified

81 ///
82 /// returns true if any of the pairs were inserted
83 pub fn insert_all<'a>(
84 &mut self,
85 iter: impl IntoIterator<Item = &'a (Expr, Expr)>,
86 ) -> bool {
87 let mut inserted = false;
88 for (left, right) in iter.into_iter() {
89 inserted |= self.insert(left, right);
90 }
91 inserted
92 }
93
94 /// Same as [`Self::insert_all`] but avoids cloning expressions if they are
95 /// already owned

Callers 2

test_insert_allFunction · 0.80
find_inner_joinFunction · 0.80

Calls 2

into_iterMethod · 0.45
insertMethod · 0.45

Tested by 1

test_insert_allFunction · 0.64