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

Method AddFactory

cpp/src/arrow/acero/exec_plan.cc:1132–1142  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1130 }
1131
1132 Status AddFactory(std::string factory_name, Factory factory) override {
1133 auto it_success = factories_.emplace(std::move(factory_name), std::move(factory));
1134
1135 if (!it_success.second) {
1136 const auto& factory_name = it_success.first->first;
1137 return Status::KeyError("ExecNode factory named ", factory_name,
1138 " already registered.");
1139 }
1140
1141 return Status::OK();
1142 }
1143
1144 private:
1145 std::unordered_map<std::string, Factory> factories_;

Callers 15

InitializeScannerV2Function · 0.80
InitializeScannerFunction · 0.80
InitializeDatasetWriterFunction · 0.80
AddPassFactoryFunction · 0.80
RegisterPivotLongerNodeFunction · 0.80
RegisterFilterNodeFunction · 0.80
RegisterAggregateNodeFunction · 0.80
RegisterSortedMergeNodeFunction · 0.80
RegisterUnionNodeFunction · 0.80
RegisterAsofJoinNodeFunction · 0.80
RegisterMethod · 0.80
RegisterHashJoinNodeFunction · 0.80

Calls 2

KeyErrorFunction · 0.85
OKFunction · 0.50

Tested by 6

AddPassFactoryFunction · 0.64
RegisterMethod · 0.64
RegisterMethod · 0.64
RegisterTestNodesFunction · 0.64
RegisterMethod · 0.64
RegisterMethod · 0.64