Impala
Impalaistheopensource,nativeanalyticdatabaseforApacheHadoop.
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
com.cloudera.impala.analysis.CreateViewStmt Class Reference
Inheritance diagram for com.cloudera.impala.analysis.CreateViewStmt:
Collaboration diagram for com.cloudera.impala.analysis.CreateViewStmt:

Public Member Functions

 CreateViewStmt (boolean ifNotExists, TableName tableName, ArrayList< ColumnDef > columnDefs, String comment, QueryStmt viewDefStmt)
 
void analyze (Analyzer analyzer) throws AnalysisException
 
String toSql ()
 
TCreateOrAlterViewParams toThrift ()
 
String getDb ()
 
String getOwner ()
 
List< ColumnDefgetColumnDescs ()
 
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< ColumnDefcolumnDefs_
 
final String comment_
 
final QueryStmt viewDefStmt_
 
String dbName_
 
String owner_
 
String originalViewDef_
 
String inlineViewDef_
 
ArrayList< ColumnDeffinalColDefs_
 
boolean isExplain_ = false
 

Detailed Description

Represents a CREATE VIEW statement.

Definition at line 31 of file CreateViewStmt.java.

Constructor & Destructor Documentation

com.cloudera.impala.analysis.CreateViewStmt.CreateViewStmt ( boolean  ifNotExists,
TableName  tableName,
ArrayList< ColumnDef columnDefs,
String  comment,
QueryStmt  viewDefStmt 
)
inline

Definition at line 33 of file CreateViewStmt.java.

Member Function Documentation

void com.cloudera.impala.analysis.CreateOrAlterViewStmtBase.computeLineageGraph ( Analyzer  analyzer)
inlineprotectedinherited
List<ColumnDef> com.cloudera.impala.analysis.CreateOrAlterViewStmtBase.getColumnDescs ( )
inlineinherited
String com.cloudera.impala.analysis.CreateOrAlterViewStmtBase.getComment ( )
inlineinherited
String com.cloudera.impala.analysis.CreateOrAlterViewStmtBase.getDb ( )
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().

boolean com.cloudera.impala.analysis.CreateOrAlterViewStmtBase.getIfNotExists ( )
inlineinherited
String com.cloudera.impala.analysis.CreateOrAlterViewStmtBase.getInlineViewDef ( )
inlineinherited
String com.cloudera.impala.analysis.CreateOrAlterViewStmtBase.getOriginalViewDef ( )
inlineinherited
String com.cloudera.impala.analysis.CreateOrAlterViewStmtBase.getOwner ( )
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().

boolean com.cloudera.impala.analysis.StatementBase.isExplain ( )
inlineinherited
void com.cloudera.impala.analysis.StatementBase.setIsExplain ( )
inlineinherited

Member Data Documentation

final String com.cloudera.impala.analysis.CreateOrAlterViewStmtBase.comment_
protectedinherited
final boolean com.cloudera.impala.analysis.CreateOrAlterViewStmtBase.ifNotExists_
protectedinherited
final QueryStmt com.cloudera.impala.analysis.CreateOrAlterViewStmtBase.viewDefStmt_
protectedinherited

The documentation for this class was generated from the following file: