Package org.apache.calcite.sql.validate
Class CatalogScope
- java.lang.Object
-
- org.apache.calcite.sql.validate.DelegatingScope
-
- org.apache.calcite.sql.validate.CatalogScope
-
- All Implemented Interfaces:
SqlValidatorScope
class CatalogScope extends DelegatingScope
Implementation ofSqlValidatorScope
that can see all schemas in the current catalog.Occurs near the root of the scope stack; its parent is typically
EmptyScope
.Helps resolve
schema.table.column
column references, such asselect sales.emp.empno from sales.emp
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.apache.calcite.sql.validate.SqlValidatorScope
SqlValidatorScope.EmptyPath, SqlValidatorScope.Path, SqlValidatorScope.Resolve, SqlValidatorScope.Resolved, SqlValidatorScope.ResolvedImpl, SqlValidatorScope.Step
-
-
Field Summary
Fields Modifier and Type Field Description (package private) com.google.common.collect.ImmutableList<java.lang.String>
names
Fully-qualified name of the catalog.private java.util.Set<java.util.List<java.lang.String>>
schemaNames
-
Fields inherited from class org.apache.calcite.sql.validate.DelegatingScope
parent, validator
-
-
Constructor Summary
Constructors Constructor Description CatalogScope(SqlValidatorScope parent, java.util.List<java.lang.String> names)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SqlNode
getNode()
Returns the root node of this scope.-
Methods inherited from class org.apache.calcite.sql.validate.DelegatingScope
addChild, addColumnNames, findAliases, findAllColumnNames, findQualifyingTableName, findQualifyingTableNames, fullyQualify, getMonotonicity, getOperandScope, getOrderList, getParent, getTableNamespace, getValidator, lookupWindow, nullifyType, resolve, resolveColumn, resolveInNamespace, resolveTable, validateExpr
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.apache.calcite.sql.validate.SqlValidatorScope
isWithin
-
-
-
-
Constructor Detail
-
CatalogScope
CatalogScope(SqlValidatorScope parent, java.util.List<java.lang.String> names)
-
-
Method Detail
-
getNode
public SqlNode getNode()
Description copied from interface:SqlValidatorScope
Returns the root node of this scope. Never null.
-
-