|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.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 SqlValidatorCatalogReader
names
- Name of table
public RelDataType getNamedType(SqlIdentifier typeName)
SqlValidatorCatalogReader
NOTE 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 SqlValidatorCatalogReader
typeName
- Name of type
public List<SqlMoniker> getAllSchemaObjectNames(List<String> names)
SqlValidatorCatalogReader
getAllSchemaObjectNames
in interface SqlValidatorCatalogReader
names
- 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 SqlValidatorCatalogReader
private String maybeUpper(String s)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |