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

Method appendNulls

bolt/vector/ComplexVector.cpp:1361–1370  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1359 const BaseVector* source,
1360 const folly::Range<const CopyRange*>& ranges) {
1361 copyRangesImpl(source, ranges, &values_, &keys_);
1362}
1363
1364void RowVector::appendNulls(vector_size_t numberOfRows) {
1365 BOLT_CHECK_GE(numberOfRows, 0);
1366 if (numberOfRows == 0) {
1367 return;
1368 }
1369 const vector_size_t newSize = numberOfRows + BaseVector::length_;
1370 const vector_size_t oldSize = BaseVector::length_;
1371 BaseVector::resize(newSize, false);
1372 bits::fillBits(mutableRawNulls(), oldSize, newSize, bits::kNull);
1373}

Callers 4

TEST_FFunction · 0.45
TEST_FFunction · 0.45
TEST_FFunction · 0.45
TEST_FFunction · 0.45

Calls 2

fillBitsFunction · 0.85
mutableRawNullsFunction · 0.85

Tested by 4

TEST_FFunction · 0.36
TEST_FFunction · 0.36
TEST_FFunction · 0.36
TEST_FFunction · 0.36