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

Method resize

bolt/vector/BaseVector.cpp:120–129  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

118}
119
120void BaseVector::resize(vector_size_t size, bool setNotNull) {
121 if (nulls_) {
122 auto bytes = byteSize<bool>(size);
123 if (length_ < size || nulls_->isView()) {
124 ensureNullsCapacity(size, setNotNull);
125 }
126 nulls_->setSize(bytes);
127 }
128 length_ = size;
129}
130
131template <TypeKind kind>
132static VectorPtr addDictionary(

Callers 15

ensureWritableMethod · 0.95
genTpchLineItemFunction · 0.45
prepareForReuseMethod · 0.45
popMethod · 0.45
string>Method · 0.45
restoreStringFromFileFunction · 0.45
copyNullsMethod · 0.45
fillInIndicesMethod · 0.45
makeIndicesMutableMethod · 0.45
nullsMethod · 0.45
ensureLoadedRowsImplMethod · 0.45

Calls 2

isViewMethod · 0.45
setSizeMethod · 0.45

Tested by 15

TEST_FFunction · 0.36
TEST_FFunction · 0.36
TEST_FFunction · 0.36
testFlatMethod · 0.36
testCopyEncodedMethod · 0.36
testSliceMethod · 0.36
TEST_FFunction · 0.36
TESTFunction · 0.36
TEST_FFunction · 0.36
loadInternalMethod · 0.36
rowVectorMethod · 0.36