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

Function readMapVector

bolt/vector/VectorSaver.cpp:519–535  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

517}
518
519VectorPtr readMapVector(
520 const TypePtr& type,
521 vector_size_t size,
522 std::istream& in,
523 memory::MemoryPool* pool) {
524 // Nulls buffer.
525 BufferPtr nulls = readOptionalBuffer(in, pool);
526
527 BufferPtr offsets = readBuffer(in, pool);
528 BufferPtr sizes = readBuffer(in, pool);
529
530 auto keys = restoreVector(in, pool);
531 auto values = restoreVector(in, pool);
532
533 return std::make_shared<MapVector>(
534 pool, type, nulls, size, offsets, sizes, keys, values);
535}
536
537void writeLazyVector(const BaseVector& vector, std::ostream& out) {
538 auto lazyVector = dynamic_cast<const LazyVector*>(&vector);

Callers 1

restoreVectorFunction · 0.70

Calls 3

readOptionalBufferFunction · 0.85
readBufferFunction · 0.85
restoreVectorFunction · 0.85

Tested by

no test coverage detected