public class JoinScope extends ListScope
Consider "SELECT * FROM (A JOIN B ON {exp1}) JOIN C ON {exp2}". {exp1} is resolved in the join scope for "A JOIN B", which contains A and B but not C.
parent, validator| Modifier and Type | Method and Description |
|---|---|
void |
addChild(SqlValidatorNamespace ns,
String alias)
Registers a relation in this scope.
|
SqlNode |
getNode()
Returns the root node of this scope.
|
SqlValidatorScope |
getUsingScope()
Returns the scope which is used for resolving USING clause.
|
SqlWindow |
lookupWindow(String name)
Finds a window with a given name.
|
findAliases, findAllColumnNames, findChild, findQualifyingTableName, getChild, getChild, getChildren, resolve, resolveColumnaddColumnNames, fullyQualify, getMonotonicity, getOperandScope, getOrderList, getParent, getTableNamespace, getValidator, nullifyType, validateExprpublic SqlNode getNode()
SqlValidatorScopepublic void addChild(SqlValidatorNamespace ns, String alias)
SqlValidatorScopeaddChild in interface SqlValidatorScopeaddChild in class ListScopens - Namespace representing the result-columns of the relationalias - Alias with which to reference the relation, must not be nullpublic SqlWindow lookupWindow(String name)
SqlValidatorScopelookupWindow in interface SqlValidatorScopelookupWindow in class DelegatingScopepublic SqlValidatorScope getUsingScope()
Copyright © 2012–2015 The Apache Software Foundation. All rights reserved.