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

Method insert

datafusion/physical-expr-common/src/binary_map.rs:68–73  ·  view source on GitHub ↗

Inserts each value from `values` into the set

(&mut self, values: &ArrayRef)

Source from the content-addressed store, hash-verified

66
67 /// Inserts each value from `values` into the set
68 pub fn insert(&mut self, values: &ArrayRef) {
69 fn make_payload_fn(_value: Option<&[u8]>) {}
70 fn observe_payload_fn(_payload: ()) {}
71 self.0
72 .insert_if_new(values, make_payload_fn, observe_payload_fn);
73 }
74
75 /// Converts this set into a `StringArray`/`LargeStringArray` or
76 /// `BinaryArray`/`LargeBinaryArray` containing each distinct value that

Callers 14

string_set_emptyFunction · 0.45
string_set_one_nullFunction · 0.45
string_set_many_nullFunction · 0.45
test_string_set_basicFunction · 0.45
test_string_set_non_utf8Function · 0.45
test_binary_setFunction · 0.45
test_large_binary_setFunction · 0.45
test_mismatched_typesFunction · 0.45
test_mismatched_sizesFunction · 0.45
test_string_overflowFunction · 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 12

string_set_emptyFunction · 0.36
string_set_one_nullFunction · 0.36
string_set_many_nullFunction · 0.36
test_string_set_basicFunction · 0.36
test_string_set_non_utf8Function · 0.36
test_binary_setFunction · 0.36
test_large_binary_setFunction · 0.36
test_mismatched_typesFunction · 0.36
test_mismatched_sizesFunction · 0.36
test_string_overflowFunction · 0.36
test_mapFunction · 0.36