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

Method SortCurrentInputRun

be/src/runtime/sorter.cc:1423–1435  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1421}
1422
1423Status Sorter::SortCurrentInputRun() {
1424 RETURN_IF_ERROR(unsorted_run_->FinalizeInput());
1425
1426 {
1427 SCOPED_TIMER(in_mem_sort_timer_);
1428 RETURN_IF_ERROR(in_mem_tuple_sorter_->Sort(unsorted_run_));
1429 }
1430 sorted_data_size_->Add(unsorted_run_->TotalBytes());
1431 run_sizes_->UpdateCounter(unsorted_run_->num_tuples());
1432
1433 RETURN_IF_CANCELLED(state_);
1434 return Status::OK();
1435}
1436
1437int Sorter::MaxRunsInNextMerge() const {
1438 int num_available_buffers = buffer_pool_client_->GetUnusedReservation() / page_len_;

Callers

nothing calls this directly

Calls 7

OKFunction · 0.85
FinalizeInputMethod · 0.80
SortMethod · 0.80
TotalBytesMethod · 0.80
AddMethod · 0.45
UpdateCounterMethod · 0.45
num_tuplesMethod · 0.45

Tested by

no test coverage detected