Main Page | Namespace List | Class Hierarchy | Class List | File List | Class Members | File Members

Table Class Reference

#include <Table.h>

List of all members.

Public Member Functions

 Table (string name, const TupleDescription schema, const DOMElement *element, ptr< TableEnvironment > tenv)
 Creates or opens the table with the given name and schema.
 Table (string name, TupleDescription schema, DBTYPE db_type, int db_open_flags, ptr< TableEnvironment > tenv)
void addIndex (const DOMElement *elt)
 ~Table ()
 Close the table.
string getName () const
const TupleDescription getSchema () const
void insert (const void *tuple)
ptr< SelectQueryHandlecompileSelect (ptr< SQLSelect > select)
ptr< UpdateQueryHandlecompileUpdate (ptr< SQLUpdate > select)
ptr< ScanQueryHandlegetScanQueryHandle ()
void sync ()
 Write any cached data out to disk.
unsigned int deleteFromHead (unsigned int head)
void insertIntoQueue (const void *tuple) throw (AuroraException)
unsigned int getSize () throw (AuroraException)
string as_string () const
Dbc * getDbCursor ()
const vector< string > & getKeyFieldNames () const
vector< ptr< TableIndex > > & getIndexes ()
void insertIntoIndexes (const Dbt &_key, const Dbt &_value)
void deleteFromIndexes (const Dbt &_key, const Dbt &_value)

Protected Member Functions

void evalKey (char *buf, const char *row)


Constructor & Destructor Documentation

Table::Table string  name,
const TupleDescription  schema,
const DOMElement *  element,
ptr< TableEnvironment tenv
 

Creates or opens the table with the given name and schema.

Table::Table string  name,
TupleDescription  schema,
DBTYPE  db_type,
int  db_open_flags,
ptr< TableEnvironment tenv
 

Table::~Table  ) 
 

Close the table.


Member Function Documentation

void Table::addIndex const DOMElement *  elt  ) 
 

string Table::as_string  )  const
 

ptr< SelectQueryHandle > Table::compileSelect ptr< SQLSelect select  ) 
 

ptr< UpdateQueryHandle > Table::compileUpdate ptr< SQLUpdate select  ) 
 

unsigned int Table::deleteFromHead unsigned int  head  ) 
 

void Table::deleteFromIndexes const Dbt &  _key,
const Dbt &  _value
 

void Table::evalKey char *  buf,
const char *  row
[protected]
 

Dbc * Table::getDbCursor  ) 
 

vector<ptr<TableIndex> >& Table::getIndexes  ) 
 

const vector<string>& Table::getKeyFieldNames  )  const
 

string Table::getName  )  const
 

ptr< ScanQueryHandle > Table::getScanQueryHandle  ) 
 

const TupleDescription Table::getSchema  )  const
 

unsigned int Table::getSize  )  throw (AuroraException)
 

void Table::insert const void *  tuple  ) 
 

void Table::insertIntoIndexes const Dbt &  _key,
const Dbt &  _value
 

void Table::insertIntoQueue const void *  tuple  )  throw (AuroraException)
 

void Table::sync  ) 
 

Write any cached data out to disk.


The documentation for this class was generated from the following files:
Generated on Fri Nov 12 15:15:24 2004 for Borealis by doxygen 1.3.8