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

Public Member Functions

 AlterTableAddPartitionStmt (TableName tableName, PartitionSpec partitionSpec, HdfsUri location, boolean ifNotExists, HdfsCachingOp cacheOp)
 
boolean getIfNotExists ()
 
HdfsUri getLocation ()
 
String toSql ()
 
TAlterTableParams toThrift ()
 
void analyze (Analyzer analyzer) throws AnalysisException
 
String getTbl ()
 
String getDb ()
 
void setIsExplain ()
 
boolean isExplain ()
 

Protected Member Functions

Table getTargetTable ()
 

Protected Attributes

final TableName tableName_
 
Table table_
 
boolean isExplain_ = false
 

Private Attributes

final HdfsUri location_
 
final boolean ifNotExists_
 
final PartitionSpec partitionSpec_
 
final HdfsCachingOp cacheOp_
 

Detailed Description

Represents an ALTER TABLE ADD PARTITION statement.

Definition at line 28 of file AlterTableAddPartitionStmt.java.

Constructor & Destructor Documentation

com.cloudera.impala.analysis.AlterTableAddPartitionStmt.AlterTableAddPartitionStmt ( TableName  tableName,
PartitionSpec  partitionSpec,
HdfsUri  location,
boolean  ifNotExists,
HdfsCachingOp  cacheOp 
)
inline

Member Function Documentation

void com.cloudera.impala.analysis.AlterTableAddPartitionStmt.analyze ( Analyzer  analyzer) throws AnalysisException
inline
String com.cloudera.impala.analysis.AlterTableStmt.getDb ( )
inlineinherited

Can only be called after analysis, returns the parent database name of the target table for this ALTER TABLE statement.

Definition at line 47 of file AlterTableStmt.java.

References com.cloudera.impala.analysis.AlterTableStmt.getTargetTable().

Referenced by com.cloudera.impala.analysis.AlterTableDropColStmt.analyze(), com.cloudera.impala.analysis.AlterTableChangeColStmt.analyze(), and com.cloudera.impala.analysis.AlterTableStmt.toThrift().

boolean com.cloudera.impala.analysis.AlterTableAddPartitionStmt.getIfNotExists ( )
inline
HdfsUri com.cloudera.impala.analysis.AlterTableAddPartitionStmt.getLocation ( )
inline
boolean com.cloudera.impala.analysis.StatementBase.isExplain ( )
inlineinherited
void com.cloudera.impala.analysis.StatementBase.setIsExplain ( )
inlineinherited

Member Data Documentation

final PartitionSpec com.cloudera.impala.analysis.AlterTableAddPartitionStmt.partitionSpec_
private

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