public static interface Prepare.CatalogReader extends RelOptSchema, SqlValidatorCatalogReader, SqlOperatorTable
| Modifier and Type | Field and Description |
|---|---|
static ThreadLocal<Prepare.CatalogReader> |
THREAD_LOCAL |
| Modifier and Type | Method and Description |
|---|---|
Prepare.PreparingTable |
getTable(List<String> names)
Finds a table or schema 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, getAllSchemaObjectNames, getConfig, getNamedType, getRootSchema, getSchemaPaths, isCaseSensitive, matches, nameMatchergetOperatorList, lookupOperatorOverloadsstatic final ThreadLocal<Prepare.CatalogReader> THREAD_LOCAL
Prepare.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)
SqlValidatorCatalogReaderUses the case-sensitivity policy of the catalog reader.
If not found, returns null. If you want a more descriptive error
message or to override the case-sensitivity of the match, use
SqlValidatorScope.resolveTable(java.util.List<java.lang.String>, org.apache.calcite.sql.validate.SqlNameMatcher, org.apache.calcite.sql.validate.SqlValidatorScope.Path, org.apache.calcite.sql.validate.SqlValidatorScope.Resolved).
getTable in interface SqlValidatorCatalogReadernames - Name of table, may be qualified or fully-qualifiedCopyright © 2012–2018 The Apache Software Foundation. All rights reserved.