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

#include <row_table.hpp>

Inheritance diagram for CoGaDB::RowTable:
Collaboration diagram for CoGaDB::RowTable:

List of all members.

Public Types

typedef
shared_pointer_namespace::shared_ptr
< RowTable
RowTablePtr

Public Member Functions

 RowTable (const string &name, const TableSchema &schema)
virtual ~RowTable ()
bool update (PositionListPtr tids, const std::string &attribute_name, const boost::any &value)
bool remove (PositionListPtr tids)
virtual void print ()
 For printing the table.
virtual bool store ()
 Stores the column in filesystem.
virtual bool load ()
 Load Table from DB (implemented as loading from file at specific path)
virtual bool loadDatafromFile (string filepath)
 Load table from file (not implemented). Use load()
virtual const TablePtr materialize () const
virtual unsigned int getNumberofRows () const throw ()
bool isMaterialized () const throw ()
 Always true, becuase of early materialization at loading time.
virtual const Tuple fetchTuple (const TID &id) const
 
  • Not implemented - Returns a tuple based on TID

virtual bool insert (const Tuple &t)
 
  • Not implemented -

virtual bool update (const string &attribute_name, const boost::any &value)
 
  • Not implemented -

virtual bool remove (const string &attribute_name, const boost::any &value)
 
  • Not implemented -

virtual const ColumnPtr getColumnbyName (const std::string &column_name) const throw ()
 
  • Not implemented -

const std::vector< RowPagePtr > & getRowPages () const
 Gets the RowPages for this table.
RowPagePtr getPageByIndex (unsigned int index, unsigned int &prefix)

Protected Member Functions

virtual const std::vector
< ColumnPtr > & 
getColumns () const

Private Member Functions

void updateMapping (unsigned int count, unsigned int value)

Private Attributes

RowTablePtr _rtp
std::vector< RowPagePtr_row_pages
std::vector< unsigned int > _row_pages_prefix
std::vector< unsigned int > _row_page_mapping
std::vector< ColumnPtr_cols
unsigned int _row_count
bool _isMaterialized
 Always true, becuase of early materialization at loading time.

Member Typedef Documentation

typedef shared_pointer_namespace::shared_ptr<RowTable> CoGaDB::RowTable::RowTablePtr

Constructor & Destructor Documentation

CoGaDB::RowTable::RowTable ( const string &  name,
const TableSchema schema 
)

Member Function Documentation

const Tuple CoGaDB::RowTable::fetchTuple ( const TID id) const [virtual]

  • Not implemented - Returns a tuple based on TID

Implements CoGaDB::BaseTable.

const ColumnPtr CoGaDB::RowTable::getColumnbyName ( const std::string &  column_name) const throw () [virtual]

  • Not implemented -

Implements CoGaDB::BaseTable.

References CoGaDB::util::getName().

Referenced by print().

Here is the call graph for this function:

Here is the caller graph for this function:

const vector< ColumnPtr > & CoGaDB::RowTable::getColumns ( ) const [protected, virtual]

Implements CoGaDB::BaseTable.

References _cols.

unsigned int CoGaDB::RowTable::getNumberofRows ( ) const throw () [virtual]

Not implemented

Reimplemented from CoGaDB::BaseTable.

References _row_count.

RowPagePtr CoGaDB::RowTable::getPageByIndex ( unsigned int  index,
unsigned int &  prefix 
)
const std::vector< RowPagePtr > & CoGaDB::RowTable::getRowPages ( ) const

Gets the RowPages for this table.

References _row_pages.

bool CoGaDB::RowTable::insert ( const Tuple t) [virtual]

  • Not implemented -

Implements CoGaDB::BaseTable.

bool CoGaDB::RowTable::isMaterialized ( ) const throw () [virtual]

Always true, becuase of early materialization at loading time.

Implements CoGaDB::BaseTable.

References _isMaterialized.

bool CoGaDB::RowTable::loadDatafromFile ( string  filepath) [virtual]

Load table from file (not implemented). Use load()

Implements CoGaDB::BaseTable.

const TablePtr CoGaDB::RowTable::materialize ( ) const [virtual]

Implements CoGaDB::BaseTable.

void CoGaDB::RowTable::print ( ) [virtual]

For printing the table.

Implements CoGaDB::BaseTable.

References _row_count, CoGaDB::BOOLEAN, CoGaDB::FLOAT, getColumnbyName(), CoGaDB::BaseTable::getSchema(), CoGaDB::INT, and CoGaDB::VARCHAR.

Here is the call graph for this function:

bool CoGaDB::RowTable::remove ( const string &  attribute_name,
const boost::any &  value 
) [virtual]

  • Not implemented -

Implements CoGaDB::BaseTable.

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

Stores the column in filesystem.

Implements CoGaDB::BaseTable.

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

  • Not implemented -

Implements CoGaDB::BaseTable.

void CoGaDB::RowTable::updateMapping ( unsigned int  count,
unsigned int  value 
) [private]

References _row_count, _row_page_mapping, and _row_pages_prefix.

Referenced by load().

Here is the caller graph for this function:


Member Data Documentation

std::vector<ColumnPtr> CoGaDB::RowTable::_cols [private]

Referenced by getColumns(), and load().

Always true, becuase of early materialization at loading time.

Referenced by isMaterialized().

unsigned int CoGaDB::RowTable::_row_count [private]
std::vector<unsigned int> CoGaDB::RowTable::_row_page_mapping [private]

Referenced by getPageByIndex(), and updateMapping().

std::vector<RowPagePtr> CoGaDB::RowTable::_row_pages [private]

Referenced by getPageByIndex(), getRowPages(), and load().

std::vector<unsigned int> CoGaDB::RowTable::_row_pages_prefix [private]

Referenced by getPageByIndex(), and updateMapping().

Referenced by load().


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