MCPcopy Create free account
hub / github.com/ClickHouse/ClickHouse / getMultipleKeysFromConfig

Function getMultipleKeysFromConfig

src/Common/getMultipleKeysFromConfig.cpp:8–20  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

6namespace DB
7{
8std::vector<std::string> getMultipleKeysFromConfig(const Poco::Util::AbstractConfiguration & config, const std::string & root, const std::string & name)
9{
10 std::vector<std::string> values;
11 Poco::Util::AbstractConfiguration::Keys config_keys;
12 config.keys(root, config_keys);
13 for (const auto & key : config_keys)
14 {
15 if (key != name && !(startsWith(key, name + "[") && endsWith(key, "]")))
16 continue;
17 values.emplace_back(key);
18 }
19 return values;
20}
21
22
23std::vector<std::string> getMultipleValuesFromConfig(const Poco::Util::AbstractConfiguration & config, const std::string & root, const std::string & name)

Callers 4

mainMethod · 0.85
initializeMethod · 0.85

Calls 4

keysMethod · 0.80
startsWithFunction · 0.70
endsWithFunction · 0.70
emplace_backMethod · 0.45

Tested by

no test coverage detected