Impala
Impalaistheopensource,nativeanalyticdatabaseforApacheHadoop.
|
Public Member Functions | |
AlterViewStmt (TableName tableName, QueryStmt viewDefStmt) | |
void | analyze (Analyzer analyzer) throws AnalysisException |
String | toSql () |
TCreateOrAlterViewParams | toThrift () |
String | getDb () |
String | getOwner () |
List< ColumnDef > | getColumnDescs () |
String | getComment () |
boolean | getIfNotExists () |
String | getOriginalViewDef () |
String | getInlineViewDef () |
String | getTbl () |
void | setIsExplain () |
boolean | isExplain () |
Protected Member Functions | |
void | createColumnAndViewDefs (Analyzer analyzer) throws AnalysisException |
void | computeLineageGraph (Analyzer analyzer) |
Protected Attributes | |
final boolean | ifNotExists_ |
final TableName | tableName_ |
final ArrayList< ColumnDef > | columnDefs_ |
final String | comment_ |
final QueryStmt | viewDefStmt_ |
String | dbName_ |
String | owner_ |
String | originalViewDef_ |
String | inlineViewDef_ |
ArrayList< ColumnDef > | finalColDefs_ |
boolean | isExplain_ = false |
Represents an ALTER VIEW AS statement.
Definition at line 28 of file AlterViewStmt.java.
|
inline |
Definition at line 30 of file AlterViewStmt.java.
|
inline |
Perform semantic analysis of node and all of its children. Throws exception if any errors found.
analyzer |
AnalysisException |
Implements com.cloudera.impala.analysis.ParseNode.
Definition at line 35 of file AlterViewStmt.java.
References com.cloudera.impala.authorization.Privilege.ALTER, com.cloudera.impala.common.RuntimeEnv.computeLineage(), com.cloudera.impala.analysis.CreateOrAlterViewStmtBase.computeLineageGraph(), com.cloudera.impala.analysis.CreateOrAlterViewStmtBase.createColumnAndViewDefs(), com.cloudera.impala.analysis.CreateOrAlterViewStmtBase.dbName_, com.cloudera.impala.analysis.CreateOrAlterViewStmtBase.getTbl(), com.cloudera.impala.common.RuntimeEnv.INSTANCE, com.cloudera.impala.analysis.CreateOrAlterViewStmtBase.owner_, and com.cloudera.impala.analysis.CreateOrAlterViewStmtBase.tableName_.
|
inlineprotectedinherited |
Computes the column lineage graph for a create/alter view statetement.
Definition at line 158 of file CreateOrAlterViewStmtBase.java.
References com.cloudera.impala.analysis.CreateOrAlterViewStmtBase.dbName_, com.cloudera.impala.analysis.CreateOrAlterViewStmtBase.finalColDefs_, and com.cloudera.impala.analysis.CreateOrAlterViewStmtBase.getTbl().
Referenced by com.cloudera.impala.analysis.AlterViewStmt.analyze(), and com.cloudera.impala.analysis.CreateViewStmt.analyze().
|
inlineprotectedinherited |
Sets the originalViewDef and the expanded inlineViewDef based on viewDefStmt. If columnDefs were given, checks that they do not contain duplicate column names and throws an exception if they do.
Definition at line 85 of file CreateOrAlterViewStmtBase.java.
References com.cloudera.impala.analysis.CreateOrAlterViewStmtBase.columnDefs_, com.cloudera.impala.analysis.CreateOrAlterViewStmtBase.dbName_, com.cloudera.impala.analysis.CreateOrAlterViewStmtBase.finalColDefs_, com.cloudera.impala.analysis.QueryStmt.getBaseTblResultExprs(), com.cloudera.impala.analysis.QueryStmt.getColLabels(), com.cloudera.impala.analysis.CreateOrAlterViewStmtBase.inlineViewDef_, com.cloudera.impala.analysis.CreateOrAlterViewStmtBase.originalViewDef_, com.cloudera.impala.analysis.CreateOrAlterViewStmtBase.owner_, and com.cloudera.impala.analysis.CreateOrAlterViewStmtBase.viewDefStmt_.
Referenced by com.cloudera.impala.analysis.AlterViewStmt.analyze(), and com.cloudera.impala.analysis.CreateViewStmt.analyze().
|
inlineinherited |
Definition at line 200 of file CreateOrAlterViewStmtBase.java.
References com.cloudera.impala.analysis.CreateOrAlterViewStmtBase.columnDefs_.
|
inlineinherited |
Definition at line 201 of file CreateOrAlterViewStmtBase.java.
References com.cloudera.impala.analysis.CreateOrAlterViewStmtBase.comment_.
|
inlineinherited |
Can only be called after analysis, returns the name of the database the table will be created within.
Definition at line 187 of file CreateOrAlterViewStmtBase.java.
References com.cloudera.impala.analysis.CreateOrAlterViewStmtBase.dbName_.
Referenced by com.cloudera.impala.analysis.CreateOrAlterViewStmtBase.toThrift().
|
inlineinherited |
Definition at line 202 of file CreateOrAlterViewStmtBase.java.
References com.cloudera.impala.analysis.CreateOrAlterViewStmtBase.ifNotExists_.
Referenced by com.cloudera.impala.analysis.CreateOrAlterViewStmtBase.toThrift().
|
inlineinherited |
Definition at line 204 of file CreateOrAlterViewStmtBase.java.
References com.cloudera.impala.analysis.CreateOrAlterViewStmtBase.inlineViewDef_.
|
inlineinherited |
Definition at line 203 of file CreateOrAlterViewStmtBase.java.
References com.cloudera.impala.analysis.CreateOrAlterViewStmtBase.originalViewDef_.
|
inlineinherited |
Can only be called after analysis, returns the owner of the view to be created.
Definition at line 195 of file CreateOrAlterViewStmtBase.java.
References com.cloudera.impala.analysis.CreateOrAlterViewStmtBase.owner_.
Referenced by com.cloudera.impala.analysis.CreateOrAlterViewStmtBase.toThrift().
|
inlineinherited |
|
inlineinherited |
Definition at line 43 of file StatementBase.java.
References com.cloudera.impala.analysis.StatementBase.isExplain_.
|
inlineinherited |
Definition at line 42 of file StatementBase.java.
References com.cloudera.impala.analysis.StatementBase.isExplain_.
|
inline |
Implements com.cloudera.impala.analysis.ParseNode.
Definition at line 58 of file AlterViewStmt.java.
References com.cloudera.impala.analysis.TableName.getDb(), and com.cloudera.impala.analysis.CreateOrAlterViewStmtBase.tableName_.
|
inlineinherited |
Definition at line 169 of file CreateOrAlterViewStmtBase.java.
References com.cloudera.impala.analysis.CreateOrAlterViewStmtBase.comment_, com.cloudera.impala.analysis.CreateOrAlterViewStmtBase.finalColDefs_, com.cloudera.impala.analysis.CreateOrAlterViewStmtBase.getDb(), com.cloudera.impala.analysis.CreateOrAlterViewStmtBase.getIfNotExists(), com.cloudera.impala.analysis.CreateOrAlterViewStmtBase.getOwner(), com.cloudera.impala.analysis.CreateOrAlterViewStmtBase.getTbl(), com.cloudera.impala.analysis.CreateOrAlterViewStmtBase.inlineViewDef_, and com.cloudera.impala.analysis.CreateOrAlterViewStmtBase.originalViewDef_.
|
protectedinherited |
|
protectedinherited |
Definition at line 41 of file CreateOrAlterViewStmtBase.java.
Referenced by com.cloudera.impala.analysis.CreateOrAlterViewStmtBase.getComment(), and com.cloudera.impala.analysis.CreateOrAlterViewStmtBase.toThrift().
|
protectedinherited |
Definition at line 45 of file CreateOrAlterViewStmtBase.java.
Referenced by com.cloudera.impala.analysis.AlterViewStmt.analyze(), com.cloudera.impala.analysis.CreateViewStmt.analyze(), com.cloudera.impala.analysis.CreateOrAlterViewStmtBase.computeLineageGraph(), com.cloudera.impala.analysis.CreateOrAlterViewStmtBase.createColumnAndViewDefs(), and com.cloudera.impala.analysis.CreateOrAlterViewStmtBase.getDb().
|
protectedinherited |
Definition at line 67 of file CreateOrAlterViewStmtBase.java.
Referenced by com.cloudera.impala.analysis.CreateOrAlterViewStmtBase.computeLineageGraph(), com.cloudera.impala.analysis.CreateOrAlterViewStmtBase.createColumnAndViewDefs(), and com.cloudera.impala.analysis.CreateOrAlterViewStmtBase.toThrift().
|
protectedinherited |
Definition at line 38 of file CreateOrAlterViewStmtBase.java.
Referenced by com.cloudera.impala.analysis.CreateViewStmt.analyze(), com.cloudera.impala.analysis.CreateOrAlterViewStmtBase.getIfNotExists(), and com.cloudera.impala.analysis.CreateViewStmt.toSql().
|
protectedinherited |
Definition at line 63 of file CreateOrAlterViewStmtBase.java.
Referenced by com.cloudera.impala.analysis.CreateOrAlterViewStmtBase.createColumnAndViewDefs(), com.cloudera.impala.analysis.CreateOrAlterViewStmtBase.getInlineViewDef(), and com.cloudera.impala.analysis.CreateOrAlterViewStmtBase.toThrift().
|
protectedinherited |
|
protectedinherited |
Definition at line 50 of file CreateOrAlterViewStmtBase.java.
Referenced by com.cloudera.impala.analysis.CreateOrAlterViewStmtBase.createColumnAndViewDefs(), com.cloudera.impala.analysis.CreateOrAlterViewStmtBase.getOriginalViewDef(), and com.cloudera.impala.analysis.CreateOrAlterViewStmtBase.toThrift().
|
protectedinherited |
Definition at line 46 of file CreateOrAlterViewStmtBase.java.
Referenced by com.cloudera.impala.analysis.AlterViewStmt.analyze(), com.cloudera.impala.analysis.CreateViewStmt.analyze(), com.cloudera.impala.analysis.CreateOrAlterViewStmtBase.createColumnAndViewDefs(), and com.cloudera.impala.analysis.CreateOrAlterViewStmtBase.getOwner().
|
protectedinherited |
|
protectedinherited |
Definition at line 42 of file CreateOrAlterViewStmtBase.java.
Referenced by com.cloudera.impala.analysis.CreateOrAlterViewStmtBase.createColumnAndViewDefs().