Turtle DB
A mini DDBMS
ca.uqac.dim.ddb.VariableTable Class Reference
Inheritance diagram for ca.uqac.dim.ddb.VariableTable:
ca.uqac.dim.ddb.UnaryRelation ca.uqac.dim.ddb.Relation

List of all members.

Public Member Functions

 VariableTable (String name)
Schema getSchema ()
void accept (QueryVisitor v) throws QueryVisitor.VisitorException
void setName (String name)
String getName ()
int tupleCount ()

Protected Member Functions

 VariableTable ()
Tuple internalNext ()

Protected Attributes

String m_name

Constructor & Destructor Documentation


Member Function Documentation

void ca.uqac.dim.ddb.VariableTable.accept ( QueryVisitor  v) throws QueryVisitor.VisitorException [virtual]

Gives the table's name

Returns:
The table's name

Returns the relation's schema

Returns:
The schema

Implements ca.uqac.dim.ddb.Relation.

Method that must be implemented by every non-abstract relation; it returns the next tuple of the enumeration, if any. Methods next and hasNext use the return value of internalNext and additionally remove any duplicate tuples from the output enumeration. Hence a call to next may result in multiple calls to the relation's internalNext, if the tuples returned are already part of the result (this is especially true of Projections.

Returns:
The next tuple, null if no such tuple exists

Implements ca.uqac.dim.ddb.Relation.

Set the table's name.

Parameters:
nameThe table's name

Returns the number of actual tuples present in the query. This number is different from the cardinality of the query; it counts the number of tuples that are present in the leaves of the query tree.

Returns:
The tuple count

Reimplemented from ca.uqac.dim.ddb.UnaryRelation.


Member Data Documentation


The documentation for this class was generated from the following file: