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

Method getFromConfig

programs/keeper-bench/Generator.cpp:384–393  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

382}
383
384void RequestGenerator::getFromConfig(const std::string & key, const Poco::Util::AbstractConfiguration & config)
385{
386 if (config.has(key + ".weight"))
387 {
388 weight = config.getUInt64(key + ".weight");
389 if (weight == 0)
390 throw DB::Exception(DB::ErrorCodes::BAD_ARGUMENTS, "Generator weight must be >= 1, got 0 for key '{}'", key);
391 }
392 getFromConfigImpl(key, config);
393}
394
395std::string RequestGenerator::description()
396{

Callers 1

fromConfigMethod · 0.80

Calls 3

ExceptionClass · 0.50
hasMethod · 0.45
getUInt64Method · 0.45

Tested by

no test coverage detected