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

Method copyNulls

bolt/vector/DecodedVector.cpp:139–148  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

137}
138
139void DecodedVector::copyNulls(vector_size_t size) {
140 auto numWords = bits::nwords(size);
141 copiedNulls_.resize(numWords > 0 ? numWords : 1);
142 if (nulls_) {
143 std::copy(nulls_, nulls_ + numWords, copiedNulls_.data());
144 } else {
145 std::fill(copiedNulls_.begin(), copiedNulls_.end(), bits::kNotNull64);
146 }
147 nulls_ = copiedNulls_.data();
148}
149
150void DecodedVector::combineWrappers(
151 const BaseVector* vector,

Callers

nothing calls this directly

Calls 6

nwordsFunction · 0.85
copyFunction · 0.70
resizeMethod · 0.45
dataMethod · 0.45
beginMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected