Package org.apache.calcite.sql.validate
Class TableScope
- java.lang.Object
-
- org.apache.calcite.sql.validate.DelegatingScope
-
- org.apache.calcite.sql.validate.ListScope
-
- org.apache.calcite.sql.validate.TableScope
-
- All Implemented Interfaces:
SqlValidatorScope
class TableScope extends ListScope
The name-resolution scope of a LATERAL TABLE clause.The objects visible are those in the parameters found on the left side of the LATERAL TABLE clause, and objects inherited from the parent scope.
-
-
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
-
-
Constructor Summary
Constructors Constructor Description TableScope(SqlValidatorScope parent, SqlNode node)
Creates a scope corresponding to a LATERAL TABLE clause.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SqlNode
getNode()
Returns the root node of this scope.boolean
isWithin(SqlValidatorScope scope2)
Returns whether this scope is enclosed withinscope2
in such a way that it can see the contents ofscope2
.-
Methods inherited from class org.apache.calcite.sql.validate.ListScope
addChild, findAliases, findAllColumnNames, findQualifyingTableName, findQualifyingTableNames, getChildNames, getChildren, resolve, resolveColumn
-
Methods inherited from class org.apache.calcite.sql.validate.DelegatingScope
addColumnNames, fullyQualify, getMonotonicity, getOperandScope, getOrderList, getParent, getTableNamespace, getValidator, lookupWindow, nullifyType, resolveInNamespace, resolveTable, validateExpr
-
-
-
-
Field Detail
-
node
private final SqlNode node
-
-
Constructor Detail
-
TableScope
TableScope(SqlValidatorScope parent, SqlNode node)
Creates a scope corresponding to a LATERAL TABLE clause.- Parameters:
parent
- Parent scope
-
-
Method Detail
-
getNode
public SqlNode getNode()
Description copied from interface:SqlValidatorScope
Returns the root node of this scope. Never null.
-
isWithin
public boolean isWithin(SqlValidatorScope scope2)
Description copied from interface:SqlValidatorScope
Returns whether this scope is enclosed withinscope2
in such a way that it can see the contents ofscope2
.
-
-