MCPcopy Create free account
hub / github.com/catboost/catboost / FindExact

Method FindExact

library/cpp/resource/registry.cpp:78–95  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

76 }
77
78 bool FindExact(const TStringBuf key, TString* out) const override {
79 if (auto res = find(ToK(key)); res != end()) {
80 // temporary
81 // https://st.yandex-team.ru/DEVTOOLS-3985
82 try {
83 *out = Decompress(res->second->second);
84 } catch (const yexception& e) {
85 if (GetEnv("RESOURCE_DECOMPRESS_DIAG")) {
86 Cerr << "Can't decompress resource " << key << Endl << e.what() << Endl;
87 }
88 throw e;
89 }
90
91 return true;
92 }
93
94 return false;
95 }
96
97 void FindMatch(const TStringBuf subkey, IMatch& cb) const override {
98 for (const auto& it : D_) {

Callers

nothing calls this directly

Calls 5

DecompressFunction · 0.85
findFunction · 0.50
endFunction · 0.50
GetEnvFunction · 0.50
whatMethod · 0.45

Tested by

no test coverage detected