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

Method insert

datafusion/physical-expr-common/src/binary_view_map.rs:44–49  ·  view source on GitHub ↗

Inserts each value from `values` into the set

(&mut self, values: &ArrayRef)

Source from the content-addressed store, hash-verified

42
43 /// Inserts each value from `values` into the set
44 pub fn insert(&mut self, values: &ArrayRef) {
45 fn make_payload_fn(_value: Option<&[u8]>) {}
46 fn observe_payload_fn(_payload: ()) {}
47 self.0
48 .insert_if_new(values, make_payload_fn, observe_payload_fn);
49 }
50
51 /// Return the contents of this map and replace it with a new empty map with
52 /// the same output type

Callers 8

string_view_set_emptyFunction · 0.45
string_view_set_one_nullFunction · 0.45
test_string_set_non_utf8Function · 0.45
test_binary_setFunction · 0.45
test_mapFunction · 0.45

Calls 10

newFunction · 0.85
to_vecMethod · 0.80
insert_if_newMethod · 0.45
lenMethod · 0.45
mapMethod · 0.45
to_stringMethod · 0.45
clonedMethod · 0.45
getMethod · 0.45
pushMethod · 0.45
cloneMethod · 0.45

Tested by 8

string_view_set_emptyFunction · 0.36
string_view_set_one_nullFunction · 0.36
test_string_set_non_utf8Function · 0.36
test_binary_setFunction · 0.36
test_mapFunction · 0.36