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

Public Member Functions

 CreateTableLikeStmt (TableName tableName, TableName srcTableName, boolean isExternal, String comment, THdfsFileFormat fileFormat, HdfsUri location, boolean ifNotExists)
 
String getTbl ()
 
String getSrcTbl ()
 
boolean isExternal ()
 
boolean getIfNotExists ()
 
String getComment ()
 
THdfsFileFormat getFileFormat ()
 
HdfsUri getLocation ()
 
String getDb ()
 
String getSrcDb ()
 
String getOwner ()
 
String toSql ()
 
TCreateTableLikeParams toThrift ()
 
void analyze (Analyzer analyzer) throws AnalysisException
 
void setIsExplain ()
 
boolean isExplain ()
 

Protected Attributes

boolean isExplain_ = false
 

Private Attributes

final TableName tableName_
 
final TableName srcTableName_
 
final boolean isExternal_
 
final String comment_
 
final THdfsFileFormat fileFormat_
 
final HdfsUri location_
 
final boolean ifNotExists_
 
String dbName_
 
String srcDbName_
 
String owner_
 

Detailed Description

Represents a CREATE TABLE LIKE statement which creates a new table based on a copy of an existing table definition.

Definition at line 32 of file CreateTableLikeStmt.java.

Constructor & Destructor Documentation

com.cloudera.impala.analysis.CreateTableLikeStmt.CreateTableLikeStmt ( TableName  tableName,
TableName  srcTableName,
boolean  isExternal,
String  comment,
THdfsFileFormat  fileFormat,
HdfsUri  location,
boolean  ifNotExists 
)
inline

Builds a CREATE TABLE LIKE statement

Parameters
tableName- Name of the new table
srcTableName- Name of the source table (table to copy)
isExternal- If true, the table's data will be preserved if dropped.
comment- Comment to attach to the table
fileFormat- File format of the table
location- The HDFS location of where the table data will stored.
ifNotExists- If true, no errors are thrown if the table already exists

Definition at line 56 of file CreateTableLikeStmt.java.

References com.cloudera.impala.analysis.CreateTableLikeStmt.isExternal().

Member Function Documentation

String com.cloudera.impala.analysis.CreateTableLikeStmt.getComment ( )
inline
String com.cloudera.impala.analysis.CreateTableLikeStmt.getDb ( )
inline

Can only be called after analysis, returns the name of the database the table will be created within.

Definition at line 82 of file CreateTableLikeStmt.java.

References com.cloudera.impala.analysis.CreateTableLikeStmt.dbName_.

Referenced by com.cloudera.impala.analysis.CreateTableLikeStmt.analyze(), and com.cloudera.impala.analysis.CreateTableLikeStmt.toThrift().

THdfsFileFormat com.cloudera.impala.analysis.CreateTableLikeStmt.getFileFormat ( )
inline
boolean com.cloudera.impala.analysis.CreateTableLikeStmt.getIfNotExists ( )
inline
HdfsUri com.cloudera.impala.analysis.CreateTableLikeStmt.getLocation ( )
inline
String com.cloudera.impala.analysis.CreateTableLikeStmt.getOwner ( )
inline
String com.cloudera.impala.analysis.CreateTableLikeStmt.getSrcDb ( )
inline

Can only be called after analysis, returns the name of the database the table will be created within.

Definition at line 91 of file CreateTableLikeStmt.java.

References com.cloudera.impala.analysis.CreateTableLikeStmt.srcDbName_.

Referenced by com.cloudera.impala.analysis.CreateTableLikeStmt.toThrift().

String com.cloudera.impala.analysis.CreateTableLikeStmt.getSrcTbl ( )
inline
String com.cloudera.impala.analysis.CreateTableLikeStmt.getTbl ( )
inline
boolean com.cloudera.impala.analysis.StatementBase.isExplain ( )
inlineinherited
boolean com.cloudera.impala.analysis.CreateTableLikeStmt.isExternal ( )
inline
void com.cloudera.impala.analysis.StatementBase.setIsExplain ( )
inlineinherited

Member Data Documentation

String com.cloudera.impala.analysis.CreateTableLikeStmt.dbName_
private
final THdfsFileFormat com.cloudera.impala.analysis.CreateTableLikeStmt.fileFormat_
private
final boolean com.cloudera.impala.analysis.CreateTableLikeStmt.ifNotExists_
private
final boolean com.cloudera.impala.analysis.CreateTableLikeStmt.isExternal_
private
String com.cloudera.impala.analysis.CreateTableLikeStmt.owner_
private
String com.cloudera.impala.analysis.CreateTableLikeStmt.srcDbName_
private
final TableName com.cloudera.impala.analysis.CreateTableLikeStmt.srcTableName_
private
final TableName com.cloudera.impala.analysis.CreateTableLikeStmt.tableName_
private

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