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

Method nextBatch

bolt/exec/Spill.cpp:353–367  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

351}
352
353void ConcatFilesSpillMergeStream::nextBatch() {
354 BOLT_CHECK(!closed_);
355 index_ = 0;
356 for (; fileIndex_ < spillFiles_.size(); ++fileIndex_) {
357 BOLT_CHECK_NOT_NULL(spillFiles_[fileIndex_]);
358 if (spillFiles_[fileIndex_]->nextBatch(rowVector_)) {
359 BOLT_CHECK_NOT_NULL(rowVector_);
360 size_ = rowVector_->size();
361 return;
362 }
363 spillFiles_[fileIndex_].reset();
364 }
365 size_ = 0;
366 close();
367}
368
369void ConcatFilesSpillMergeStream::close() {
370 BOLT_CHECK(!closed_);

Callers 7

getOutputMethod · 0.45
addSpillInputMethod · 0.45
createMethod · 0.45
getBatchMethod · 0.45
processSpillInputMethod · 0.45

Calls 4

sizeMethod · 0.45
resetMethod · 0.45
clearMethod · 0.45
getSpillReadIOTimeMethod · 0.45

Tested by

no test coverage detected