public abstract class DelegatingSqlValidatorCatalogReader extends Object implements SqlValidatorCatalogReader
SqlValidatorCatalogReader that passes
all calls to a parent catalog reader.| Modifier and Type | Field and Description |
|---|---|
protected SqlValidatorCatalogReader |
catalogReader |
| Modifier | Constructor and Description |
|---|---|
protected |
DelegatingSqlValidatorCatalogReader(SqlValidatorCatalogReader catalogReader)
Creates a DelegatingSqlValidatorCatalogReader.
|
| Modifier and Type | Method and Description |
|---|---|
List<SqlMoniker> |
getAllSchemaObjectNames(List<String> names)
Given fully qualified schema name, returns schema object names as
specified.
|
@Nullable RelDataType |
getNamedType(SqlIdentifier typeName)
Finds a user-defined type with the given name, possibly qualified.
|
List<List<String>> |
getSchemaPaths()
Returns the paths of all schemas to look in for tables.
|
@Nullable SqlValidatorTable |
getTable(List<String> names)
Finds a table or schema with the given name, possibly qualified.
|
<C> C |
unwrap(Class<C> aClass)
Finds an instance of an interface implemented by this object,
or returns null if this object does not support that interface.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcreateTypeFromProjection, field, getConfig, getRootSchema, isCaseSensitive, matches, nameMatchermaybeUnwrap, unwrapOrThrowprotected final SqlValidatorCatalogReader catalogReader
protected DelegatingSqlValidatorCatalogReader(SqlValidatorCatalogReader catalogReader)
catalogReader - Parent catalog readerpublic @Nullable SqlValidatorTable 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-qualifiedpublic @Nullable 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 typepublic List<SqlMoniker> getAllSchemaObjectNames(List<String> names)
SqlValidatorCatalogReadergetAllSchemaObjectNames in interface SqlValidatorCatalogReadernames - the array contains fully qualified schema name or empty
list for root schemapublic List<List<String>> getSchemaPaths()
SqlValidatorCatalogReadergetSchemaPaths in interface SqlValidatorCatalogReaderCopyright © 2012-2022 Apache Software Foundation. All Rights Reserved.