Impala
Impalaistheopensource,nativeanalyticdatabaseforApacheHadoop.
|
Public Member Functions | |
WithClause (ArrayList< View > views) | |
WithClause (WithClause other) | |
void | analyze (Analyzer analyzer) throws AnalysisException |
WithClause | clone () |
String | toSql () |
Private Attributes | |
final ArrayList< View > | views_ |
Representation of the WITH clause that may appear before a query statement or insert statement. A WITH clause contains a list of named view definitions that may be referenced in the query statement that follows it.
Scoping rules: A WITH-clause view is visible inside the query statement that it belongs to. This includes inline views and nested WITH clauses inside the query statement.
Each WITH clause establishes a new analysis scope. A WITH-clause view definition may refer to views from the same WITH-clause appearing to its left, and to all WITH-clause views from outer scopes.
References to WITH-clause views are resolved inside out, i.e., a match is found by first looking in the current scope and then in the enclosing scope(s).
Views defined within the same WITH-clause may not use the same alias.
Definition at line 45 of file WithClause.java.
|
inline |
Definition at line 48 of file WithClause.java.
References com.cloudera.impala.analysis.WithClause.views_.
Referenced by com.cloudera.impala.analysis.WithClause.clone().
|
inline |
Copy c'tor.
Definition at line 57 of file WithClause.java.
References com.cloudera.impala.analysis.WithClause.clone(), com.cloudera.impala.catalog.Table.getName(), and com.cloudera.impala.analysis.WithClause.views_.
|
inline |
Analyzes all views and registers them with the analyzer. Enforces scoping rules. All local views registered with the analyzer are have QueryStmts with resolved TableRefs to simplify the analysis of view references.
Implements com.cloudera.impala.analysis.ParseNode.
Definition at line 71 of file WithClause.java.
References com.cloudera.impala.analysis.Analyzer.getAccessEvents(), com.cloudera.impala.analysis.Analyzer.getLocalViews(), com.cloudera.impala.analysis.Analyzer.getMissingTbls(), com.cloudera.impala.analysis.Analyzer.getPrivilegeReqs(), com.cloudera.impala.analysis.Analyzer.setIsExplain(), and com.cloudera.impala.analysis.WithClause.views_.
|
inline |
Definition at line 106 of file WithClause.java.
References com.cloudera.impala.analysis.WithClause.WithClause().
Referenced by com.cloudera.impala.analysis.WithClause.WithClause().
|
inline |
Implements com.cloudera.impala.analysis.ParseNode.
Definition at line 109 of file WithClause.java.
References com.cloudera.impala.analysis.WithClause.views_.
|
private |
Definition at line 46 of file WithClause.java.
Referenced by com.cloudera.impala.analysis.WithClause.analyze(), com.cloudera.impala.analysis.WithClause.toSql(), and com.cloudera.impala.analysis.WithClause.WithClause().