saffron
Interface Table

All Known Subinterfaces:
ImplementableTable
All Known Implementing Classes:
AbstractTable, JdbcTable, ObjectTable

public interface Table

A Table is a relational dataset in a Schema. It has methods to describe and implement itself.

Since:
10 November, 2001
Version:
$Id: //open/saffron/src/main/saffron/Table.java#4 $
Author:
jhyde

Method Summary
 String getQualifiedName()
          Obtain an identifier for this table.
 double getRowCount()
          Returns an estimate of the number of rows in the table.
 Type getRowType()
          Describes the type of rows returned by this table.
 Schema getSchema()
          Returns the Schema this table belongs to.
 Rel toRel(Cluster cluster, Expression connectionExp)
          Converts this table into a relational expression.
 

Method Detail

getSchema

public Schema getSchema()
Returns the Schema this table belongs to.


getRowType

public Type getRowType()
Describes the type of rows returned by this table.


getRowCount

public double getRowCount()
Returns an estimate of the number of rows in the table.


toRel

public Rel toRel(Cluster cluster,
                 Expression connectionExp)
Converts this table into a relational expression. This relational expression can then be optimized by applying rules to transform it into other access methods for this table.

Parameters:
cluster - the cluster this Rel will belong to
connectionExp - the parse tree of the expression which evaluates to a connection object

getQualifiedName

public String getQualifiedName()
Obtain an identifier for this table. The identifier must be unique with respect to the Connection producing this table.

Returns:
qualified name

SourceForge.net_Logo