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

Method call

bolt/functions/prestosql/ArrayFunctions.h:836–851  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

834 BOLT_DEFINE_FUNCTION_TYPES(T)
835
836 FOLLY_ALWAYS_INLINE void call(
837 out_type<Array<Generic<T1>>>& out,
838 const arg_type<Array<Array<Generic<T1>>>>& arrays) {
839 int64_t elementCount = 0;
840 for (const auto& array : arrays) {
841 if (array.has_value()) {
842 elementCount += array.value().size();
843 }
844 }
845 out.reserve(elementCount);
846 for (const auto& array : arrays) {
847 if (array.has_value()) {
848 out.add_items(array.value());
849 }
850 }
851 }
852};
853
854/// This class implements the array union function.

Callers

nothing calls this directly

Calls 5

has_valueMethod · 0.80
add_itemsMethod · 0.80
sizeMethod · 0.45
valueMethod · 0.45
reserveMethod · 0.45

Tested by

no test coverage detected