|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.eigenbase.test.SqlToRelTestBase.MockRelOptSchema
protected static class SqlToRelTestBase.MockRelOptSchema
Mock implementation of RelOptSchema
.
Nested Class Summary | |
---|---|
protected class |
SqlToRelTestBase.MockRelOptSchema.MockColumnSet
|
Field Summary | |
---|---|
private SqlValidatorCatalogReader |
catalogReader
|
private RelDataTypeFactory |
typeFactory
|
Constructor Summary | |
---|---|
SqlToRelTestBase.MockRelOptSchema(SqlValidatorCatalogReader catalogReader,
RelDataTypeFactory typeFactory)
|
Method Summary | |
---|---|
protected SqlToRelTestBase.MockRelOptSchema.MockColumnSet |
createColumnSet(SqlValidatorTable table,
String[] names,
RelDataType rowType,
List<RelCollation> collationList)
|
RelOptTable |
getTableForMember(String[] names)
Retrieves a RelOptTable based upon a member access. |
RelOptTable |
getTableForMember(String[] names,
String datasetName,
boolean[] usedDataset)
Retrieves a RelOptTable based upon a member access, using a
sample dataset if it exists. |
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private final SqlValidatorCatalogReader catalogReader
private final RelDataTypeFactory typeFactory
Constructor Detail |
---|
public SqlToRelTestBase.MockRelOptSchema(SqlValidatorCatalogReader catalogReader, RelDataTypeFactory typeFactory)
Method Detail |
---|
public RelOptTable getTableForMember(String[] names)
RelOptSchema
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.
getTableForMember
in interface RelOptSchema
public RelOptTable getTableForMember(String[] names, String datasetName, boolean[] usedDataset)
RelOptSchemaWithSampling
RelOptTable
based upon a member access, using a
sample dataset if it exists.
getTableForMember
in interface RelOptSchemaWithSampling
names
- Compound name of tabledatasetName
- Name of sample dataset to substitute, if it exists;
null to not look for a sampleusedDataset
- Output parameter which is set to true if a sample
dataset is found; may be null
protected SqlToRelTestBase.MockRelOptSchema.MockColumnSet createColumnSet(SqlValidatorTable table, String[] names, RelDataType rowType, List<RelCollation> collationList)
public RelDataTypeFactory getTypeFactory()
RelOptSchema
type factory
used to generate
types for this schema.
getTypeFactory
in interface RelOptSchema
public void registerRules(RelOptPlanner planner) throws Exception
RelOptSchema
RelOptPlanner.registerSchema(org.eigenbase.relopt.RelOptSchema)
.
registerRules
in interface RelOptSchema
Exception
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |