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

Method deserializeFrom

src/Storages/MergeTree/MergeTreeDataPartChecksum.cpp:286–294  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

284}
285
286MergeTreeDataPartChecksums MergeTreeDataPartChecksums::deserializeFrom(const String & s)
287{
288 ReadBufferFromString in(s);
289 MergeTreeDataPartChecksums res;
290 if (!res.read(in))
291 throw Exception(ErrorCodes::FORMAT_VERSION_TOO_OLD, "Checksums format is too old");
292 assertEOF(in);
293 return res;
294}
295
296bool MergeTreeDataPartChecksums::isBadChecksumsErrorCode(int code)
297{

Callers

nothing calls this directly

Calls 4

assertEOFFunction · 0.85
ExceptionClass · 0.50
readMethod · 0.45
deserializeMethod · 0.45

Tested by

no test coverage detected