TurtleDB
A mini distributed database system
ca.uqac.dim.turtledb.VariableTable Class Reference
Inheritance diagram for ca.uqac.dim.turtledb.VariableTable:
Collaboration diagram for ca.uqac.dim.turtledb.VariableTable:

List of all members.

Classes

class  VariableTableCacheIterator
class  VariableTableStreamIterator

Public Member Functions

 VariableTable (String name)
 VariableTable (String name, String site)
void setSite (String site)
String getSite ()
Schema getSchema ()
void accept (QueryVisitor v) throws EmptyQueryVisitor.VisitorException
String toString ()
void setName (String name)
String getName ()
int tupleCount ()
final boolean isFragment ()
boolean equals (Object o)
boolean equals (VariableTable t)
boolean isLeaf ()
RelationStreamIterator streamIterator ()
RelationIterator cacheIterator ()

Protected Member Functions

 VariableTable ()

Protected Attributes

String m_name
String m_site

Detailed Description

A VariableTable is a placeholder for an actual relation. It is used to denote fragments of a query tree that are to be received from or sent to another site.

Author:
sylvain

Definition at line 27 of file VariableTable.java.


Constructor & Destructor Documentation

Definition at line 39 of file VariableTable.java.

Definition at line 46 of file VariableTable.java.

ca.uqac.dim.turtledb.VariableTable.VariableTable ( String  name,
String  site 
)

Definition at line 52 of file VariableTable.java.


Member Function Documentation

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

Implements ca.uqac.dim.turtledb.Relation.

Definition at line 91 of file VariableTable.java.

Returns an iterator over tuples of the relation

Returns:

Implements ca.uqac.dim.turtledb.Relation.

Definition at line 227 of file VariableTable.java.

Definition at line 139 of file VariableTable.java.

Gives the table's name

Returns:
The table's name

Definition at line 119 of file VariableTable.java.

Returns the relation's schema

Returns:
The schema

Implements ca.uqac.dim.turtledb.Relation.

Definition at line 82 of file VariableTable.java.

Gets the fragment's site. If the VariableTable is a leaf in a query tree, it is placeholder for data that will be received from this site. If the VariableTable is the root of the query tree, it indicates that the results of the computation are to be sent to this site.

Definition at line 76 of file VariableTable.java.

Determines if the query tree is a fragment. This is the case when the tree's root is a VariableTable.

Returns:
True if the query tree is a fragment, false otherwise

Reimplemented from ca.uqac.dim.turtledb.Relation.

Definition at line 133 of file VariableTable.java.

Determines if a given operator is at the leaf of the query tree. Only instances of Table and VariableTable may be leaves.

Returns:

Reimplemented from ca.uqac.dim.turtledb.Relation.

Definition at line 156 of file VariableTable.java.

Set the table's name.

Parameters:
nameThe table's name

Definition at line 110 of file VariableTable.java.

Sets the fragment's site.

See also:
getSite
Parameters:
site

Definition at line 64 of file VariableTable.java.

Returns an iterator over tuples of the relation

Returns:

Implements ca.uqac.dim.turtledb.Relation.

Definition at line 221 of file VariableTable.java.

Pretty-prints a relation to a string

Reimplemented from ca.uqac.dim.turtledb.Relation.

Definition at line 99 of file VariableTable.java.

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.turtledb.UnaryRelation.

Definition at line 125 of file VariableTable.java.


Member Data Documentation

The fragment's name

Definition at line 32 of file VariableTable.java.

The fragment's site

Definition at line 37 of file VariableTable.java.


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