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

Method BlobByKey

library/cpp/archive/directory_models_archive_reader.cpp:53–62  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

51}
52
53TBlob TDirectoryModelsArchiveReader::BlobByKey(const TStringBuf key) const {
54 Y_ENSURE(Has(key), "key " << key << " not found");
55 if (auto ptr = BlobByKey_.FindPtr(key); ptr) {
56 return *ptr;
57 }
58 if (auto ptr = PathByKey_.FindPtr(key); ptr) {
59 return TBlob::FromFile(*ptr);
60 }
61 Y_UNREACHABLE();
62}
63
64bool TDirectoryModelsArchiveReader::Compressed() const {
65 return false;

Callers

nothing calls this directly

Calls 2

HasFunction · 0.85
FindPtrMethod · 0.45

Tested by

no test coverage detected