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

Method insert_owned

datafusion/optimizer/src/join_key_set.rs:71–78  ·  view source on GitHub ↗

Same as [`Self::insert`] but avoids cloning expression if they are owned

(&mut self, left: Expr, right: Expr)

Source from the content-addressed store, hash-verified

69 /// Same as [`Self::insert`] but avoids cloning expression if they
70 /// are owned
71 pub fn insert_owned(&mut self, left: Expr, right: Expr) -> bool {
72 if self.contains(&left, &right) {
73 false
74 } else {
75 self.inner.insert((left, right));
76 true
77 }
78 }
79
80 /// Inserts potentially many join keys into the set, copying only when necessary
81 ///

Callers 1

insert_all_ownedMethod · 0.80

Calls 2

containsMethod · 0.45
insertMethod · 0.45

Tested by

no test coverage detected