org.eigenbase.test
Class SqlToRelTestBase.DelegatingRelOptTable

java.lang.Object
  extended by org.eigenbase.test.SqlToRelTestBase.DelegatingRelOptTable
All Implemented Interfaces:
RelOptTable
Enclosing class:
SqlToRelTestBase

private static class SqlToRelTestBase.DelegatingRelOptTable
extends Object
implements RelOptTable


Field Summary
private  RelOptTable parent
           
 
Constructor Summary
SqlToRelTestBase.DelegatingRelOptTable(RelOptTable parent)
           
 
Method Summary
 List<RelCollation> getCollationList()
          Returns a description of the physical ordering (or orderings) of the rows returned from this table.
 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.
 RelNode toRel(RelOptCluster cluster, RelOptConnection connection)
          Converts this table into a relational expression.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

parent

private final RelOptTable parent
Constructor Detail

SqlToRelTestBase.DelegatingRelOptTable

public SqlToRelTestBase.DelegatingRelOptTable(RelOptTable parent)
Method Detail

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

getRelOptSchema

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

Specified by:
getRelOptSchema in interface RelOptTable

toRel

public RelNode toRel(RelOptCluster cluster,
                     RelOptConnection connection)
Description copied from interface: RelOptTable
Converts this table into a relational expression.

The planner calls this method to convert a table into an initial relational expression, generally something abstract, such as a TableAccessRel, then optimizes this expression by applying rules to transform it into more efficient access methods for this table.

Specified by:
toRel in interface RelOptTable
Parameters:
cluster - the cluster the relational expression will belong to
connection - the parse tree of the expression which evaluates to a connection object

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()