MCPcopy Create free account
hub / github.com/apache/arrow / NativeFunction

Function NativeFunction

cpp/src/gandiva/native_function.h:56–68  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

54 bool CanReturnErrors() const { return (flags_ & kCanReturnErrors) != 0; }
55
56 NativeFunction(const std::string& base_name, const std::vector<std::string>& aliases,
57 const DataTypeVector& param_types, const DataTypePtr& ret_type,
58 const ResultNullableType& result_nullable_type, std::string pc_name,
59 int32_t flags = 0)
60 : signatures_(),
61 flags_(flags),
62 result_nullable_type_(result_nullable_type),
63 pc_name_(std::move(pc_name)) {
64 signatures_.emplace_back(base_name, param_types, ret_type);
65 for (auto& func_name : aliases) {
66 signatures_.emplace_back(func_name, param_types, ret_type);
67 }
68 }
69
70 private:
71 std::vector<FunctionSignature> signatures_;

Calls 1

emplace_backMethod · 0.80

Tested by

no test coverage detected