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

Method restoreVector

bolt/expression/tests/ExprTest.cpp:285–291  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

283 }
284
285 VectorPtr restoreVector(const std::string& path) {
286 std::ifstream inputFile(path, std::ifstream::binary);
287 BOLT_CHECK(!inputFile.fail(), "Cannot open file: {}", path);
288 auto copy = bytedance::bolt::restoreVector(inputFile, pool());
289 inputFile.close();
290 return copy;
291 }
292
293 void verifyDataAndSqlPaths(const BoltException& e, const VectorPtr& data) {
294 auto inputPath = extractInputPath(e.additionalContext());

Callers

nothing calls this directly

Calls 3

restoreVectorFunction · 0.85
poolFunction · 0.50
closeMethod · 0.45

Tested by

no test coverage detected