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

Method TotalBytes

be/src/runtime/sorter.cc:876–886  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

874}
875
876int64_t Sorter::Run::TotalBytes() const {
877 int64_t total_bytes = 0;
878 for (const Page& page : fixed_len_pages_) {
879 if (page.is_open()) total_bytes += page.valid_data_len();
880 }
881
882 for (const Page& page : var_len_pages_) {
883 if (page.is_open()) total_bytes += page.valid_data_len();
884 }
885 return total_bytes;
886}
887
888Status Sorter::Run::AddInputBatch(RowBatch* batch, int start_index, int* num_processed,
889 bool* allocation_failed) {

Callers 2

AddBatchMethod · 0.80
SortCurrentInputRunMethod · 0.80

Calls 2

valid_data_lenMethod · 0.80
is_openMethod · 0.45

Tested by

no test coverage detected