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

Method loadedVector

bolt/vector/ComplexVector.cpp:486–506  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

484}
485
486BaseVector* RowVector::loadedVector() {
487 if (childrenLoaded_) {
488 return this;
489 }
490 containsLazyNotLoaded_ = false;
491 for (auto i = 0; i < childrenSize_; ++i) {
492 if (!children_[i]) {
493 continue;
494 }
495 auto& newChild = BaseVector::loadedVectorShared(children_[i]);
496 // This is not needed but can potentially optimize decoding speed later.
497 if (children_[i].get() != newChild.get()) {
498 children_[i] = newChild;
499 }
500 if (isLazyNotLoaded(*children_[i])) {
501 containsLazyNotLoaded_ = true;
502 }
503 }
504 childrenLoaded_ = true;
505 return this;
506}
507
508void RowVector::updateContainsLazyNotLoaded() const {
509 childrenLoaded_ = false;

Callers 15

operator()Method · 0.45
AsStringViewFunction · 0.45
MultiplyByTwoFunction · 0.45
addRawInputMethod · 0.45
asPyArgsFunction · 0.45
combineInputColumnsFunction · 0.45
setInternalStateMethod · 0.45
copyValuesAndNullsMethod · 0.45
copyRangesMethod · 0.45
BaseVector.cppFile · 0.45
isLazyNotLoadedFunction · 0.45

Calls 2

isLazyNotLoadedFunction · 0.85
getMethod · 0.45

Tested by 15

AsStringViewFunction · 0.36
MultiplyByTwoFunction · 0.36
TEST_FFunction · 0.36
testSliceMethod · 0.36
TEST_FFunction · 0.36
TEST_FFunction · 0.36
printGeneratedDataMethod · 0.36
TEST_FFunction · 0.36
physChildFunction · 0.36
TEST_FFunction · 0.36
TEST_PFunction · 0.36
readMethod · 0.36