| 1613 | } |
| 1614 | |
| 1615 | bool Sorter::HasSpilledRuns() const { |
| 1616 | // All runs in 'merging_runs_' are spilled. 'sorted_runs_' can contain at most one |
| 1617 | // non-spilled run. |
| 1618 | return !merging_runs_.empty() || sorted_runs_.size() > 1 || |
| 1619 | (sorted_runs_.size() == 1 && !sorted_runs_.back()->is_pinned()); |
| 1620 | } |
| 1621 | |
| 1622 | const char* Sorter::TupleSorter::SORTER_HELPER_SYMBOL = |
| 1623 | "_ZN6impala6Sorter11TupleSorter10SortHelperENS0_13TupleIteratorES2_"; |