MCPcopy Create free account
hub / github.com/apache/impala / CacheFileSize

Function CacheFileSize

be/src/kudu/util/pb_util.cc:245–255  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

243// If 'cached_file_size' already has a value, this is a no-op.
244template<typename ReadableFileType>
245Status CacheFileSize(ReadableFileType* reader,
246 optional<uint64_t>* cached_file_size) {
247 if (cached_file_size->has_value()) {
248 return Status::OK();
249 }
250
251 uint64_t file_size;
252 RETURN_NOT_OK(reader->Size(&file_size));
253 *cached_file_size = file_size;
254 return Status::OK();
255}
256
257template<typename ReadableFileType>
258Status RestOfFileIsAllZeros(ReadableFileType* reader,

Callers 2

ReadPBStartingAtFunction · 0.85
ParsePBFileHeaderFunction · 0.85

Calls 3

OKFunction · 0.85
has_valueMethod · 0.80
SizeMethod · 0.45

Tested by

no test coverage detected