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

Method reset

bolt/vector/DecodedVector.cpp:121–137  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

119}
120
121void DecodedVector::reset(vector_size_t size) {
122 if (!indicesNotCopied()) {
123 // Init with default value to avoid invalid indices for unselected rows)
124 std::fill(copiedIndices_.begin(), copiedIndices_.end(), 0);
125 }
126 size_ = size;
127 indices_ = nullptr;
128 data_ = nullptr;
129 nulls_ = nullptr;
130 allNulls_.reset();
131 baseVector_ = nullptr;
132 mayHaveNulls_ = false;
133 hasExtraNulls_ = false;
134 isConstantMapping_ = false;
135 isIdentityMapping_ = false;
136 constantIndex_ = 0;
137}
138
139void DecodedVector::copyNulls(vector_size_t size) {
140 auto numWords = bits::nwords(size);

Callers 14

setValidMethod · 0.45
setValidRangeMethod · 0.45
updateBoundsMethod · 0.45
copyValuesAndNullsMethod · 0.45
prepareForReuseMethod · 0.45
copyMethod · 0.45
deregisterVectorSerdeFunction · 0.45
copyMethod · 0.45
copyRangesMethod · 0.45
prepareForReuseMethod · 0.45
TEST_FFunction · 0.45
TEST_FFunction · 0.45

Calls 2

beginMethod · 0.45
endMethod · 0.45

Tested by 3

TEST_FFunction · 0.36
TEST_FFunction · 0.36
~VectorTestBaseMethod · 0.36