MCPcopy Create free account
hub / github.com/bytedance/bolt / callNullable

Method callNullable

bolt/functions/sparksql/ArrayPrepend.h:48–56  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

46 // Fast path for primitives.
47 template <typename Out, typename In, typename E>
48 FOLLY_ALWAYS_INLINE bool callNullable(Out& out, const In* array, E* element) {
49 if (array == nullptr) {
50 return false;
51 }
52 out.reserve(array->size() + 1);
53 element ? out.push_back(*element) : out.add_null();
54 out.add_items(*array);
55 return true;
56 }
57
58 // Generic implementation.
59 FOLLY_ALWAYS_INLINE bool callNullable(

Callers

nothing calls this directly

Calls 5

add_nullMethod · 0.80
add_itemsMethod · 0.80
reserveMethod · 0.45
sizeMethod · 0.45
push_backMethod · 0.45

Tested by

no test coverage detected