org.eigenbase.test
Class SqlToRelTestBase.MockRelOptConnection
java.lang.Object
org.eigenbase.test.SqlToRelTestBase.MockRelOptConnection
- All Implemented Interfaces:
- RelOptConnection
- Enclosing class:
- SqlToRelTestBase
private static class SqlToRelTestBase.MockRelOptConnection
- extends Object
- implements RelOptConnection
Mock implementation of RelOptConnection, contains a SqlToRelTestBase.MockRelOptSchema.
|
Method Summary |
Object |
contentsAsArray(String qualifier,
String tableName)
In theory, this method returns the contents of tableName as
an array; in practice, it is a placeholder recognized by the optimizer to
do something much more efficient. |
RelOptSchema |
getRelOptSchema()
Returns the schema underlying this connection. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
relOptSchema
private final RelOptSchema relOptSchema
SqlToRelTestBase.MockRelOptConnection
public SqlToRelTestBase.MockRelOptConnection(RelOptSchema relOptSchema)
getRelOptSchema
public RelOptSchema getRelOptSchema()
- Description copied from interface:
RelOptConnection
- Returns the schema underlying this connection. Non-abstract classes
implementing this interface must also provide
public static Schema
getRelOptSchemaStatic().
- Specified by:
getRelOptSchema in interface RelOptConnection
contentsAsArray
public Object contentsAsArray(String qualifier,
String tableName)
- Description copied from interface:
RelOptConnection
- In theory, this method returns the contents of
tableName as
an array; in practice, it is a placeholder recognized by the optimizer to
do something much more efficient. This involves calling RelOptSchema.getTableForMember(java.lang.String[])(qualifier,tableName).RelOptTable.toRel(org.eigenbase.relopt.RelOptCluster, org.eigenbase.relopt.RelOptConnection)(cluster, exp).
- Specified by:
contentsAsArray in interface RelOptConnection