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

Method ByteSize

be/src/service/query-result-set.cc:300–307  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

298}
299
300int64_t AsciiQueryResultSet::ByteSize(int start_idx, int num_rows) {
301 int64_t bytes = 0;
302 const int end = min(static_cast<size_t>(num_rows), result_set_->size() - start_idx);
303 for (int i = start_idx; i < start_idx + end; ++i) {
304 bytes += sizeof(result_set_[i]) + result_set_[i].size();
305 }
306 return bytes;
307}
308
309////////////////////////////////////////////////////////////////////////////////
310

Callers 2

FetchRowsInternalMethod · 0.45
ClearResultCacheMethod · 0.45

Calls 5

minFunction · 0.85
TColumnByteSizeFunction · 0.85
ByteSizeFunction · 0.85
sizeFunction · 0.50
sizeMethod · 0.45

Tested by

no test coverage detected