| 1 | #include "duckdb/execution/index/art/swizzleable_pointer.hpp" |
|---|---|
| 2 | |
| 3 | #include "duckdb/storage/meta_block_reader.hpp" |
| 4 | |
| 5 | namespace duckdb { |
| 6 | |
| 7 | SwizzleablePointer::SwizzleablePointer(MetaBlockReader &reader) { |
| 8 | |
| 9 | idx_t block_id = reader.Read<block_id_t>(); |
| 10 | offset = reader.Read<uint32_t>(); |
| 11 | type = 0; |
| 12 | |
| 13 | if (block_id == DConstants::INVALID_INDEX) { |
| 14 | swizzle_flag = 0; |
| 15 | return; |
| 16 | } |
| 17 | |
| 18 | buffer_id = (uint32_t)block_id; |
| 19 | swizzle_flag = 1; |
| 20 | } |
| 21 | |
| 22 | } // namespace duckdb |
| 23 |