MCPcopy Create free account
hub / github.com/bytedance/bolt / close

Method close

bolt/exec/TopNRowNumber.cpp:737–754  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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
746void 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_) {

Callers

nothing calls this directly

Calls 5

listAllRowsMethod · 0.80
resetMethod · 0.45
resizeMethod · 0.45
sizeMethod · 0.45
dataMethod · 0.45

Tested by

no test coverage detected