Column-oriented GPU-accelerated Database Management System
CoGaDB
|
Abstract object with holds a Page and more information of it. Holds also Pointer to previous or next pages, which holds also data of the same column. This double linked list will be created by BufferManager. Iterate with prev() and next(). For debugging, printStatus() prints the page-status-byte of this and all next pages. More...
#include <buffer_object.hpp>
Public Member Functions | |
BufferObject (PagePtr, std::string, std::string, std::string) | |
BufferObject (const BufferObject &) | |
~BufferObject () | |
BufferObject & | operator= (const BufferObject &) |
PagePtr | getPage () |
std::string | getPath () const |
std::string | getTableName () const |
std::string | getColName () const |
BufferObject * | next () const |
BufferObject * | prev () const |
void | setNext (BufferObject *) |
void | setPrev (BufferObject *) |
bool | containsContentOf (std::string, std::string) const |
void | printStatus () const |
Private Attributes | |
struct BufferObject * | _next |
struct BufferObject * | _prev |
PagePtr | _page |
std::string | _path |
std::string | _table |
std::string | _col |
Abstract object with holds a Page and more information of it. Holds also Pointer to previous or next pages, which holds also data of the same column. This double linked list will be created by BufferManager. Iterate with prev() and next(). For debugging, printStatus() prints the page-status-byte of this and all next pages.
CoGaDB::BufferObject::BufferObject | ( | PagePtr | page, |
std::string | path, | ||
std::string | table, | ||
std::string | col | ||
) |
CoGaDB::BufferObject::BufferObject | ( | const BufferObject & | bo | ) |
bool CoGaDB::BufferObject::containsContentOf | ( | std::string | table, |
std::string | col | ||
) | const |
string CoGaDB::BufferObject::getColName | ( | ) | const |
References _col.
References _page.
Referenced by CoGaDB::RowPage::getStringFromPage(), and CoGaDB::RowPage::getValueFromPage().
string CoGaDB::BufferObject::getPath | ( | ) | const |
References _path.
string CoGaDB::BufferObject::getTableName | ( | ) | const |
References _table.
BufferObject * CoGaDB::BufferObject::next | ( | ) | const |
References _next.
Referenced by CoGaDB::RowPage::getStringFromPage(), and CoGaDB::RowPage::getValueFromPage().
BufferObject& CoGaDB::BufferObject::operator= | ( | const BufferObject & | ) |
BufferObject * CoGaDB::BufferObject::prev | ( | ) | const |
References _prev.
Referenced by CoGaDB::BufferManager::getPages().
void CoGaDB::BufferObject::printStatus | ( | ) | const |
References _next, _page, and printStatus().
Referenced by printStatus().
void CoGaDB::BufferObject::setNext | ( | BufferObject * | bo | ) |
References _next.
Referenced by CoGaDB::BufferManager::createPage().
void CoGaDB::BufferObject::setPrev | ( | BufferObject * | bo | ) |
References _prev.
std::string CoGaDB::BufferObject::_col [private] |
Referenced by containsContentOf(), and getColName().
struct BufferObject* CoGaDB::BufferObject::_next [private] |
Referenced by next(), printStatus(), and setNext().
PagePtr CoGaDB::BufferObject::_page [private] |
Referenced by getPage(), and printStatus().
std::string CoGaDB::BufferObject::_path [private] |
Referenced by getPath().
struct BufferObject* CoGaDB::BufferObject::_prev [private] |
std::string CoGaDB::BufferObject::_table [private] |
Referenced by containsContentOf(), and getTableName().