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

Method finish

bolt/exec/SpillableWindowBuild.cpp:356–370  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

354
355template <bool needSort>
356void SpillableWindowBuild<needSort>::finish() {
357 for (int i = 0; i < allocatedSizes_.size(); i++) {
358 if (allocatedSizes_[i] == 0) {
359 continue;
360 }
361 data_->pool()->free(allocatedStarts_[i], allocatedSizes_[i]);
362 allocatedSizes_[i] = 0;
363 }
364 sortRows_.clear();
365 allocatedStarts_.clear();
366 allocatedSizes_.clear();
367 numBuffers_.clear();
368 data_->clear();
369 data_->pool()->release();
370}
371
372// Spill large partitions
373template <bool needSort>

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