Column-oriented GPU-accelerated Database Management System
CoGaDB
CoGaDB::BufferManager Class Reference

#include <buffer_manager.hpp>

Collaboration diagram for CoGaDB::BufferManager:

List of all members.

Public Member Functions

bool pageReplacement ()
int count () const
void print () const
BufferObjectgetPages (std::string, std::string)

Static Public Member Functions

static BufferManagergetInstance ()
 Get instance of BufferManager -> singleton pattern.

Private Member Functions

 BufferManager ()
 Private constructor for singleton pattern.
BufferObjectcreatePage (std::string, std::string, int)
 Load page from HDD.

Private Attributes

unsigned int _maxSize
std::set< BuffObjPtr_pages

Static Private Attributes

static BufferManager_instance = NULL

Constructor & Destructor Documentation

Private constructor for singleton pattern.

References _maxSize, _pages, and MAX_PAGES.

Referenced by getInstance().

Here is the caller graph for this function:


Member Function Documentation

References _pages.

BufferObject * CoGaDB::BufferManager::createPage ( std::string  table,
std::string  col,
int  offset 
) [private]

Load page from HDD.

References _maxSize, _pages, pageReplacement(), and CoGaDB::BufferObject::setNext().

Referenced by getPages().

Here is the call graph for this function:

Here is the caller graph for this function:

Get instance of BufferManager -> singleton pattern.

References _instance, and BufferManager().

Referenced by CoGaDB::RowTable::load().

Here is the call graph for this function:

Here is the caller graph for this function:

BufferObject * CoGaDB::BufferManager::getPages ( std::string  table,
std::string  col 
)

References _pages, createPage(), and CoGaDB::BufferObject::prev().

Referenced by CoGaDB::RowTable::load().

Here is the call graph for this function:

Here is the caller graph for this function:

TODO: Add implementation

Referenced by createPage().

Here is the caller graph for this function:

References _pages.


Member Data Documentation

BufferManager * CoGaDB::BufferManager::_instance = NULL [static, private]

Referenced by getInstance().

unsigned int CoGaDB::BufferManager::_maxSize [private]

Referenced by BufferManager(), and createPage().

B+ tree structure for fast access

Referenced by BufferManager(), count(), createPage(), getPages(), and print().


The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines