| 410 | } |
| 411 | |
| 412 | VectorPtr 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 | |
| 429 | void writeRowVector(const BaseVector& vector, std::ostream& out) { |
| 430 | // Nulls buffer. |
no test coverage detected