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

Method getFileSize

src/IO/WithFileSize.cpp:16–22  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

14}
15
16size_t WithFileSize::getFileSize()
17{
18 if (auto maybe_size = tryGetFileSize())
19 return *maybe_size;
20
21 throw Exception(ErrorCodes::UNKNOWN_FILE_SIZE, "Cannot find out file size");
22}
23
24template <typename T>
25static std::optional<size_t> tryGetFileSize(T & in)

Callers 4

executeImplMethod · 0.45
isNeedToAddEmptyBlockMethod · 0.45
removeTmpMetadataFileMethod · 0.45

Calls 2

tryGetFileSizeFunction · 0.85
ExceptionClass · 0.70

Tested by

no test coverage detected