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

Method setStringBuffers

bolt/vector/FlatVector.h:487–496  ·  view source on GitHub ↗

Used for vectors of type VARCHAR and VARBINARY to replace the old data buffers with 'buffers' which are referenced by StringView's.

Source from the content-addressed store, hash-verified

485 /// Used for vectors of type VARCHAR and VARBINARY to replace the old data
486 /// buffers with 'buffers' which are referenced by StringView's.
487 void setStringBuffers(std::vector<BufferPtr> buffers) {
488 BOLT_DCHECK_GE(stringBuffers_.size(), stringBufferSet_.size());
489
490 stringBuffers_ = std::move(buffers);
491 stringBufferSet_.clear();
492 stringBufferSet_.reserve(stringBuffers_.size());
493 for (const auto& bufferPtr : stringBuffers_) {
494 stringBufferSet_.insert(bufferPtr.get());
495 }
496 }
497
498 /// Used for vectors of type VARCHAR and VARBINARY to release the data
499 /// buffers referenced by StringView's.

Callers 4

TEST_FFunction · 0.80
readFlatVectorMethod · 0.80
nextMethod · 0.80
initializeFlatVectorFunction · 0.80

Calls 5

sizeMethod · 0.45
clearMethod · 0.45
reserveMethod · 0.45
insertMethod · 0.45
getMethod · 0.45

Tested by 1

TEST_FFunction · 0.64