| 45 | } |
| 46 | |
| 47 | arrow::Result<FunctionHolderPtr> FunctionHolderMakerRegistry::Make( |
| 48 | const std::string& name, const FunctionNode& node) { |
| 49 | auto lowered_name = AsciiToLower(name); |
| 50 | auto found = function_holder_makers_.find(lowered_name); |
| 51 | if (found == function_holder_makers_.end()) { |
| 52 | return Status::Invalid("function holder not registered for function " + name); |
| 53 | } |
| 54 | |
| 55 | return found->second(node); |
| 56 | } |
| 57 | |
| 58 | FunctionHolderMakerRegistry::MakerMap FunctionHolderMakerRegistry::DefaultHolderMakers() { |
| 59 | static const MakerMap maker_map = { |
nothing calls this directly
no test coverage detected