org.eigenbase.relopt
Interface RelOptSchema

All Known Subinterfaces:
RelOptSchemaWithSampling
All Known Implementing Classes:
FarragoPreparingStmt, LucidDbPreparingStmt, SqlToRelTestBase.MockRelOptSchema

public interface RelOptSchema

A RelOptSchema is a set of RelOptTable objects.

See Also:
RelOptConnection

Method Summary
 RelOptTable getTableForMember(String[] names)
          Retrieves a RelOptTable based upon a member access.
 RelDataTypeFactory getTypeFactory()
          Returns the type factory used to generate types for this schema.
 void registerRules(RelOptPlanner planner)
          Registers all of the rules supported by this schema.
 

Method Detail

getTableForMember

RelOptTable getTableForMember(String[] names)
Retrieves a RelOptTable based upon a member access.

For example, the Saffron expression salesSchema.emps would be resolved using a call to salesSchema.getTableForMember(new String[]{"emps" }).

Note that name.length is only greater than 1 for queries originating from JDBC.


getTypeFactory

RelDataTypeFactory getTypeFactory()
Returns the type factory used to generate types for this schema.


registerRules

void registerRules(RelOptPlanner planner)
                   throws Exception
Registers all of the rules supported by this schema. Only called by RelOptPlanner.registerSchema(org.eigenbase.relopt.RelOptSchema).

Throws:
Exception