|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.eigenbase.sql2rel.SqlToRelConverter.SchemaCatalogReader
public static class SqlToRelConverter.SchemaCatalogReader
A SchemaCatalogReader looks up catalog information from a
schema object.
| Field Summary | |
|---|---|
private RelOptSchema |
schema
|
private boolean |
upperCase
|
| Constructor Summary | |
|---|---|
SqlToRelConverter.SchemaCatalogReader(RelOptSchema schema,
boolean upperCase)
|
|
| Method Summary | |
|---|---|
List<SqlMoniker> |
getAllSchemaObjectNames(List<String> names)
Gets schema object names as specified. |
RelDataType |
getNamedType(SqlIdentifier typeName)
Finds a user-defined type with the given name, possibly qualified. |
String |
getSchemaName()
Returns the name of the current schema. |
SqlValidatorTable |
getTable(String[] names)
Finds a table with the given name, possibly qualified. |
private String |
maybeUpper(String s)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private final RelOptSchema schema
private final boolean upperCase
| Constructor Detail |
|---|
public SqlToRelConverter.SchemaCatalogReader(RelOptSchema schema,
boolean upperCase)
| Method Detail |
|---|
public SqlValidatorTable getTable(String[] names)
SqlValidatorCatalogReader
getTable in interface SqlValidatorCatalogReadernames - Name of table
public RelDataType getNamedType(SqlIdentifier typeName)
SqlValidatorCatalogReaderNOTE jvs 12-Feb-2005: the reason this method is defined here instead of on RelDataTypeFactory is that it has to take into account context-dependent information such as SQL schema path, whereas a type factory is context-independent.
getNamedType in interface SqlValidatorCatalogReadertypeName - Name of type
public List<SqlMoniker> getAllSchemaObjectNames(List<String> names)
SqlValidatorCatalogReader
getAllSchemaObjectNames in interface SqlValidatorCatalogReadernames - the array contains either 2 elements representing a
partially qualified object name in the format of 'schema.object', or an
unqualified name in the format of 'object'
public String getSchemaName()
SqlValidatorCatalogReader
getSchemaName in interface SqlValidatorCatalogReaderprivate String maybeUpper(String s)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||