A closure that can free the memory associated with a mapped page.
A thread-safe cache of column pages.
std::vector< RPageDeleter > fDeleters
std::vector< std::uint32_t > fReferences
RPagePool & operator=(const RPagePool &)=delete
void ReturnPage(const RPage &page)
Give back a page to the pool and decrease the reference counter.
RPagePool(const RPagePool &)=delete
RPage GetPage(ColumnId_t columnId, NTupleSize_t globalIndex)
Tries to find the page corresponding to column and index in the cache.
std::vector< RPage > fPages
TODO(jblomer): should be an efficient index structure that allows.
void RegisterPage(const RPage &page, const RPageDeleter &deleter)
Adds a new page to the pool together with the function to free its space.
A page is a slice of a column that is mapped into memory.