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

Function getFileSize

src/IO/WithFileSize.cpp:34–40  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

32
33template <typename T>
34static size_t getFileSize(T & in)
35{
36 if (auto maybe_size = tryGetFileSize(in))
37 return *maybe_size;
38
39 throw Exception(ErrorCodes::UNKNOWN_FILE_SIZE, "Cannot find out file size");
40}
41
42std::optional<size_t> tryGetFileSizeFromReadBuffer(ReadBuffer & in)
43{

Callers 12

setReadUntilPositionMethod · 0.70
nextFileSegmentsBatchMethod · 0.50
nextImplStepMethod · 0.50
setReadUntilEndMethod · 0.50
setReadUntilEndMethod · 0.50
setReadUntilEndMethod · 0.50
hasPendingDataToReadMethod · 0.50
nextImplMethod · 0.50
getFileSizeIfExistsMethod · 0.50
getStorageObjectsMethod · 0.50

Calls 2

tryGetFileSizeFunction · 0.85
ExceptionClass · 0.70

Tested by

no test coverage detected