| 735 | partitions_.size(), |
| 736 | RowContainer::kUnlimited, |
| 737 | partitions_.data())) { |
| 738 | for (auto i = 0; i < numPartitions; ++i) { |
| 739 | std::destroy_at( |
| 740 | reinterpret_cast<TopRows*>(partitions_[i] + partitionOffset_)); |
| 741 | } |
| 742 | } |
| 743 | } |
| 744 | } |
| 745 | |
| 746 | void TopNRowNumber::reclaim( |
| 747 | uint64_t /*targetBytes*/, |
| 748 | memory::MemoryReclaimer::Stats& stats) { |
| 749 | BOLT_CHECK(canReclaim()); |
| 750 | BOLT_CHECK(!nonReclaimableSection_); |
| 751 | |
| 752 | if (data_->numRows() == 0) { |
| 753 | // Nothing to spill. |
| 754 | return; |
| 755 | } |
| 756 | |
| 757 | if (noMoreInput_) { |
nothing calls this directly
no test coverage detected