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

#include <table.hpp>

Inheritance diagram for CoGaDB::Table:
Collaboration diagram for CoGaDB::Table:

List of all members.

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< ColumnPtrcolumns_

Constructor & Destructor Documentation

CoGaDB::Table::Table ( const std::string &  name,
const TableSchema schema 
)

References columns_, and CoGaDB::createColumn().

Here is the call graph for this function:

CoGaDB::Table::Table ( const std::string &  name,
const std::vector< ColumnPtr > &  columns 
)
CoGaDB::Table::~Table ( ) [virtual]

Member Function Documentation

bool CoGaDB::Table::addColumn ( ColumnPtr  col) [virtual]
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().

Here is the call graph for this function:

Here is the caller graph for this function:

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().

Here is the caller graph for this function:

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_.

Here is the call graph for this function:

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.

Here is the call graph for this function:

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().

Here is the call graph for this function:

bool CoGaDB::Table::store ( ) [virtual]

tries to store table in database

Implements CoGaDB::BaseTable.

References columns_, CoGaDB::RuntimeConfiguration::instance(), and CoGaDB::BaseTable::name_.

Here is the call graph for this function:

bool CoGaDB::Table::update ( const std::string &  attribute_name,
const boost::any &  value 
) [virtual]

Implements CoGaDB::BaseTable.

References getColumnbyName().

Here is the call graph for this function:


Member Data Documentation


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