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

Method mutableNulls

bolt/dwio/common/SelectiveColumnReader.h:256–272  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

254 // capacity and is unique. If extending existing buffer, preserves
255 // previous contents.
256 uint64_t* FOLLY_NONNULL mutableNulls(int32_t size) {
257 if (!resultNulls_->unique()) {
258 resultNulls_ = AlignedBuffer::allocate<bool>(
259 numValues_ + size, &memoryPool_, bits::kNotNull);
260 rawResultNulls_ = resultNulls_->asMutable<uint64_t>();
261 }
262 if (resultNulls_->capacity() * 8 < numValues_ + size) {
263 // If a single read() spans many encoding runs then result nulls may
264 // occasionally need extending.
265 AlignedBuffer::reallocate<bool>(
266 &resultNulls_,
267 numValues_ + size + simd::kPadding * 8,
268 bits::kNotNull);
269 rawResultNulls_ = resultNulls_->asMutable<uint64_t>();
270 }
271 return rawResultNulls_;
272 }
273
274 // True if this reads contiguous rows starting at 0 and may have
275 // nulls. If so, the nulls decoded from the nulls in encoded data

Callers 15

TEST_FFunction · 0.80
fastAppendScalarFunction · 0.80
readNullsFunction · 0.80
readNullsMethod · 0.80
readWithVisitorMethod · 0.80
getValuesMethod · 0.80
resetFunction · 0.80
rawNullsMethod · 0.80
getValuesMethod · 0.80
getRawNullsMethod · 0.80
extractValuesWithNullsFunction · 0.80
extractValuesWithNullsFunction · 0.80

Calls 2

uniqueMethod · 0.80
capacityMethod · 0.45

Tested by 2

TEST_FFunction · 0.64
testSplitMethod · 0.64