![]() |
Column-oriented GPU-accelerated Database Management System
CoGaDB
|
#include <table.hpp>


Public Member Functions | |
| Table (const std::string &name, const TableSchema &schema) | |
| Table (const std::string &name, const std::vector< ColumnPtr > &columns) | |
| virtual | ~Table () |
| virtual void | print () |
| bool | store () |
| bool | load () |
| bool | loadDatafromFile (std::string filepath) |
| virtual const TablePtr | materialize () const |
| virtual bool | addColumn (ColumnPtr) |
| unsigned int | getNumberofRows () const throw () |
| bool | isMaterialized () const throw () |
| const Tuple | fetchTuple (const TID &id) const |
| bool | insert (const Tuple &t) |
| bool | update (const std::string &attribute_name, const boost::any &value) |
| bool | remove (const std::string &attribute_name, const boost::any &value) |
| const ColumnPtr | getColumnbyName (const std::string &column_name) const throw () |
Protected Member Functions | |
| virtual const std::vector < ColumnPtr > & | getColumns () const |
Protected Attributes | |
| std::vector< ColumnPtr > | columns_ |
| CoGaDB::Table::Table | ( | const std::string & | name, |
| const TableSchema & | schema | ||
| ) |
| CoGaDB::Table::Table | ( | const std::string & | name, |
| const std::vector< ColumnPtr > & | columns | ||
| ) |
References CoGaDB::BaseTable::schema_.
| CoGaDB::Table::~Table | ( | ) | [virtual] |
| bool CoGaDB::Table::addColumn | ( | ColumnPtr | col | ) | [virtual] |
Implements CoGaDB::BaseTable.
References columns_, and CoGaDB::BaseTable::schema_.
| const Tuple CoGaDB::Table::fetchTuple | ( | const TID & | id | ) | const [virtual] |
Implements CoGaDB::BaseTable.
References columns_.
| const ColumnPtr CoGaDB::Table::getColumnbyName | ( | const std::string & | column_name | ) | const throw () [virtual] |
Implements CoGaDB::BaseTable.
References columns_, CoGaDB::BaseTable::getName(), CoGaDB::BaseTable::name_, CoGaDB::quiet, and CoGaDB::verbose.
Referenced by remove(), and update().


| const std::vector< ColumnPtr > & CoGaDB::Table::getColumns | ( | ) | const [protected, virtual] |
Implements CoGaDB::BaseTable.
| unsigned int CoGaDB::Table::getNumberofRows | ( | ) | const throw () [virtual] |
Reimplemented from CoGaDB::BaseTable.
References columns_.
| bool CoGaDB::Table::insert | ( | const Tuple & | t | ) | [virtual] |
Implements CoGaDB::BaseTable.
References columns_, and CoGaDB::BaseTable::name_.
Referenced by loadDatafromFile().

| bool CoGaDB::Table::isMaterialized | ( | ) | const throw () [virtual] |
Implements CoGaDB::BaseTable.
| bool CoGaDB::Table::load | ( | ) | [virtual] |
tries to load table form database
Implements CoGaDB::BaseTable.
References columns_, CoGaDB::getFilesinDirectory(), CoGaDB::RuntimeConfiguration::instance(), CoGaDB::ColumnBase::load(), and CoGaDB::BaseTable::name_.

| bool CoGaDB::Table::loadDatafromFile | ( | std::string | filepath | ) | [virtual] |
Implements CoGaDB::BaseTable.
References CoGaDB::BOOLEAN, columns_, CoGaDB::FLOAT, insert(), CoGaDB::INT, CoGaDB::BaseTable::name_, and CoGaDB::VARCHAR.

| const TablePtr CoGaDB::Table::materialize | ( | ) | const [virtual] |
Implements CoGaDB::BaseTable.
| void CoGaDB::Table::print | ( | ) | [virtual] |
Implements CoGaDB::BaseTable.
References columns_, and CoGaDB::BaseTable::name_.
| bool CoGaDB::Table::remove | ( | const std::string & | attribute_name, |
| const boost::any & | value | ||
| ) | [virtual] |
Implements CoGaDB::BaseTable.
References getColumnbyName().

| bool CoGaDB::Table::store | ( | ) | [virtual] |
tries to store table in database
Implements CoGaDB::BaseTable.
References columns_, CoGaDB::RuntimeConfiguration::instance(), and CoGaDB::BaseTable::name_.

| bool CoGaDB::Table::update | ( | const std::string & | attribute_name, |
| const boost::any & | value | ||
| ) | [virtual] |
Implements CoGaDB::BaseTable.
References getColumnbyName().

std::vector<ColumnPtr> CoGaDB::Table::columns_ [protected] |
Referenced by addColumn(), fetchTuple(), getColumnbyName(), getNumberofRows(), insert(), load(), loadDatafromFile(), print(), store(), and Table().