org.eigenbase.relopt
Class RelOptAbstractTable

java.lang.Object
  extended by org.eigenbase.relopt.RelOptAbstractTable
All Implemented Interfaces:
RelOptTable
Direct Known Subclasses:
FarragoPreparingStmt.PermutingRelOptTable, FarragoQueryNamedColumnSet, MedAbstractColumnSet

public abstract class RelOptAbstractTable
extends Object
implements RelOptTable

A RelOptAbstractTable is a partial implementation of RelOptTable.

Since:
May 3, 2002
Version:
$Id: //open/dev/farrago/src/org/eigenbase/relopt/RelOptAbstractTable.java#12 $
Author:
jhyde

Field Summary
protected  String name
           
protected  RelDataType rowType
           
protected  RelOptSchema schema
           
 
Constructor Summary
protected RelOptAbstractTable(RelOptSchema schema, String name, RelDataType rowType)
           
 
Method Summary
 List<RelCollation> getCollationList()
          Returns a description of the physical ordering (or orderings) of the rows returned from this table.
 String getName()
           
 String[] getQualifiedName()
          Obtains an identifier for this table.
 RelOptSchema getRelOptSchema()
          Returns the RelOptSchema this table belongs to.
 double getRowCount()
          Returns an estimate of the number of rows in the table.
 RelDataType getRowType()
          Describes the type of rows returned by this table.
 void setRowType(RelDataType rowType)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.eigenbase.relopt.RelOptTable
toRel
 

Field Detail

schema

protected RelOptSchema schema

rowType

protected RelDataType rowType

name

protected String name
Constructor Detail

RelOptAbstractTable

protected RelOptAbstractTable(RelOptSchema schema,
                              String name,
                              RelDataType rowType)
Method Detail

getName

public String getName()

getQualifiedName

public String[] getQualifiedName()
Description copied from interface: RelOptTable
Obtains an identifier for this table. The identifier must be unique with respect to the Connection producing this table.

Specified by:
getQualifiedName in interface RelOptTable
Returns:
qualified name

getRowCount

public double getRowCount()
Description copied from interface: RelOptTable
Returns an estimate of the number of rows in the table.

Specified by:
getRowCount in interface RelOptTable

getRowType

public RelDataType getRowType()
Description copied from interface: RelOptTable
Describes the type of rows returned by this table.

Specified by:
getRowType in interface RelOptTable

setRowType

public void setRowType(RelDataType rowType)

getRelOptSchema

public RelOptSchema getRelOptSchema()
Description copied from interface: RelOptTable
Returns the RelOptSchema this table belongs to.

Specified by:
getRelOptSchema in interface RelOptTable

getCollationList

public List<RelCollation> getCollationList()
Description copied from interface: RelOptTable
Returns a description of the physical ordering (or orderings) of the rows returned from this table.

Specified by:
getCollationList in interface RelOptTable
See Also:
RelNode.getCollationList()