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

Function findPaimonColumnHandle

bolt/connectors/paimon/PaimonDataSource.cpp:59–75  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

57}
58
59std::shared_ptr<PaimonColumnHandle> findPaimonColumnHandle(
60 const std::unordered_map<std::string, std::shared_ptr<ColumnHandle>>&
61 columnHandles,
62 const std::string& fieldName) {
63 auto it = columnHandles.find(fieldName);
64 if (it != columnHandles.end()) {
65 return paimonColumnHandle(it->second, fieldName);
66 }
67
68 for (const auto& [outputName, columnHandle] : columnHandles) {
69 auto handle = paimonColumnHandle(columnHandle, outputName);
70 if (handle->name() == fieldName) {
71 return handle;
72 }
73 }
74 return nullptr;
75}
76
77} // namespace
78

Callers 1

PaimonDataSourceMethod · 0.85

Calls 4

paimonColumnHandleFunction · 0.85
findMethod · 0.45
endMethod · 0.45
nameMethod · 0.45

Tested by

no test coverage detected