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

Public Member Functions

 CreateTableAsSelectStmt (CreateTableStmt createStmt, QueryStmt queryStmt)
 
QueryStmt getQueryStmt ()
 
InsertStmt getInsertStmt ()
 
CreateTableStmt getCreateStmt ()
 
String toSql ()
 
void analyze (Analyzer analyzer) throws AnalysisException
 
void setIsExplain ()
 
boolean isExplain ()
 

Protected Attributes

boolean isExplain_ = false
 

Private Attributes

final CreateTableStmt createStmt_
 
final InsertStmt insertStmt_
 

Static Private Attributes

static final EnumSet
< THdfsFileFormat > 
SUPPORTED_INSERT_FORMATS
 

Detailed Description

Represents a CREATE TABLE AS SELECT (CTAS) statement

Definition at line 34 of file CreateTableAsSelectStmt.java.

Constructor & Destructor Documentation

com.cloudera.impala.analysis.CreateTableAsSelectStmt.CreateTableAsSelectStmt ( CreateTableStmt  createStmt,
QueryStmt  queryStmt 
)
inline

Builds a CREATE TABLE AS SELECT statement

Definition at line 43 of file CreateTableAsSelectStmt.java.

References com.cloudera.impala.analysis.CreateTableStmt.getTblName().

Member Function Documentation

CreateTableStmt com.cloudera.impala.analysis.CreateTableAsSelectStmt.getCreateStmt ( )
inline
InsertStmt com.cloudera.impala.analysis.CreateTableAsSelectStmt.getInsertStmt ( )
inline
QueryStmt com.cloudera.impala.analysis.CreateTableAsSelectStmt.getQueryStmt ( )
inline
boolean com.cloudera.impala.analysis.StatementBase.isExplain ( )
inlineinherited
void com.cloudera.impala.analysis.StatementBase.setIsExplain ( )
inlineinherited
String com.cloudera.impala.analysis.CreateTableAsSelectStmt.toSql ( )
inline
Returns
SQL syntax corresponding to this node.

Implements com.cloudera.impala.analysis.ParseNode.

Definition at line 55 of file CreateTableAsSelectStmt.java.

References com.cloudera.impala.analysis.CreateTableAsSelectStmt.getQueryStmt().

Member Data Documentation

final CreateTableStmt com.cloudera.impala.analysis.CreateTableAsSelectStmt.createStmt_
private
final InsertStmt com.cloudera.impala.analysis.CreateTableAsSelectStmt.insertStmt_
private
final EnumSet<THdfsFileFormat> com.cloudera.impala.analysis.CreateTableAsSelectStmt.SUPPORTED_INSERT_FORMATS
staticprivate
Initial value:
=
EnumSet.of(THdfsFileFormat.PARQUET, THdfsFileFormat.TEXT)

Definition at line 37 of file CreateTableAsSelectStmt.java.

Referenced by com.cloudera.impala.analysis.CreateTableAsSelectStmt.analyze().


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