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

Method finish

bolt/exec/SortWindowBuild.cpp:260–274  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

258}
259
260void SortWindowBuild::finish() {
261 for (int i = 0; i < allocatedSizes_.size(); i++) {
262 if (allocatedSizes_[i] == 0) {
263 continue;
264 }
265 data_->pool()->free(allocatedStarts_[i], allocatedSizes_[i]);
266 allocatedSizes_[i] = 0;
267 }
268 sortRows_.clear();
269 allocatedStarts_.clear();
270 allocatedSizes_.clear();
271 numBuffers_.clear();
272 data_->clear();
273 data_->pool()->release();
274}
275
276void SortWindowBuild::storeRows() {
277 BOLT_CHECK_GT(accumulatedLength_, 0);

Callers

nothing calls this directly

Calls 5

sizeMethod · 0.45
freeMethod · 0.45
poolMethod · 0.45
clearMethod · 0.45
releaseMethod · 0.45

Tested by

no test coverage detected