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

Method getFileSize

src/IO/ReadBufferFromS3.cpp:353–361  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

351}
352
353size_t ReadBufferFromS3::getFileSize()
354{
355 if (file_size)
356 return *file_size;
357
358 S3::S3Util s3_util(client_ptr, bucket, read_settings.for_disk_s3);
359 file_size = s3_util.getObjectSize(key);
360 return *file_size;
361}
362
363Aws::S3::Model::GetObjectResult ReadBufferFromS3::sendRequest(size_t range_begin, std::optional<size_t> range_end_not_incl)
364{

Callers 3

isNeedToAddEmptyBlockMethod · 0.45
getFileSizeFunction · 0.45
setNvmCacheMethod · 0.45

Calls 1

getObjectSizeMethod · 0.80

Tested by

no test coverage detected