public static interface Prepare.CatalogReader extends RelOptSchema, SqlValidatorCatalogReader
| Modifier and Type | Method and Description |
|---|---|
Prepare.PreparingTable |
getTable(List<String> names)
Finds a table with the given name, possibly qualified.
|
Prepare.PreparingTable |
getTableForMember(List<String> names)
Retrieves a
RelOptTable based upon a member access. |
Prepare.CatalogReader |
withSchemaPath(List<String> schemaPath)
Returns a catalog reader the same as this one but with a possibly
different schema path.
|
getTypeFactory, registerRulescreateTypeFromProjection, field, fieldOrdinal, getAllSchemaObjectNames, getNamedType, getSchemaName, match, matchesPrepare.PreparingTable getTableForMember(List<String> names)
RelOptSchemaRelOptTable 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 RelOptSchemanames - Qualified namePrepare.CatalogReader withSchemaPath(List<String> schemaPath)
Prepare.PreparingTable getTable(List<String> names)
SqlValidatorCatalogReadergetTable in interface SqlValidatorCatalogReadernames - Qualified name of tableCopyright © 2012–2015 The Apache Software Foundation. All rights reserved.