41 return &(itr->second);
47 auto &pages = pageMap->fOnDiskPages;
48 fOnDiskPages.insert(std::make_move_iterator(pages.begin()), std::make_move_iterator(pages.end()));
49 pageMap->fOnDiskPages.clear();
50 fPageMaps.emplace_back(std::move(pageMap));
56 R__ASSERT(fClusterId == other.fClusterId);
58 auto &pages = other.fOnDiskPages;
59 fOnDiskPages.insert(std::make_move_iterator(pages.begin()), std::make_move_iterator(pages.end()));
60 other.fOnDiskPages.clear();
62 auto &columns = other.fAvailPhysicalColumns;
63 fAvailPhysicalColumns.insert(std::make_move_iterator(columns.begin()), std::make_move_iterator(columns.end()));
64 other.fAvailPhysicalColumns.clear();
65 std::move(other.fPageMaps.begin(), other.fPageMaps.end(), std::back_inserter(fPageMaps));
66 other.fPageMaps.clear();
71 fAvailPhysicalColumns.insert(physicalColumnId);
An in-memory subset of the packed and compressed pages of a cluster.
void Adopt(std::unique_ptr< ROnDiskPageMap > pageMap)
Move the given page map into this cluster; for on-disk pages that are present in both the cluster at ...
void SetColumnAvailable(DescriptorId_t physicalColumnId)
Marks the column as complete; must be done for all columns, even empty ones without associated pages,...
std::unordered_map< ROnDiskPage::Key, ROnDiskPage > fOnDiskPages
Lookup table for the on-disk pages.
const ROnDiskPage * GetOnDiskPage(const ROnDiskPage::Key &key) const
~ROnDiskPageMapHeap() override
virtual ~ROnDiskPageMap()
A page as being stored on disk, that is packed and compressed.
std::uint64_t DescriptorId_t
Distriniguishes elements of the same type within a descriptor, e.g. different fields.
On-disk pages within a page source are identified by the column and page number.