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

Function readDictionaryVector

bolt/vector/VectorSaver.cpp:412–427  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

410}
411
412VectorPtr readDictionaryVector(
413 const TypePtr& /*type*/,
414 vector_size_t size,
415 std::istream& in,
416 memory::MemoryPool* pool) {
417 // Nulls buffer.
418 BufferPtr nulls = readOptionalBuffer(in, pool);
419
420 // Indices buffer.
421 BufferPtr indices = readBuffer(in, pool);
422
423 // Base vector.
424 auto baseVector = restoreVector(in, pool);
425
426 return BaseVector::wrapInDictionary(nulls, indices, size, baseVector);
427}
428
429void writeRowVector(const BaseVector& vector, std::ostream& out) {
430 // Nulls buffer.

Callers 2

restoreVectorFunction · 0.70
nextMethod · 0.50

Calls 4

readOptionalBufferFunction · 0.85
readBufferFunction · 0.85
restoreVectorFunction · 0.85
wrapInDictionaryFunction · 0.85

Tested by

no test coverage detected