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

Public Member Functions

 AlterTableAddReplaceColsStmt (TableName tableName, List< ColumnDef > columnDefs, boolean replaceExistingCols)
 
List< ColumnDefgetColumnDescs ()
 
boolean getReplaceExistingCols ()
 
TAlterTableParams toThrift ()
 
void analyze (Analyzer analyzer) throws AnalysisException
 
String getTbl ()
 
String getDb ()
 
String toSql ()
 
void setIsExplain ()
 
boolean isExplain ()
 

Protected Member Functions

Table getTargetTable ()
 

Protected Attributes

final TableName tableName_
 
Table table_
 
boolean isExplain_ = false
 

Private Attributes

final List< ColumnDefcolumnDefs_
 
final boolean replaceExistingCols_
 

Detailed Description

Represents an ALTER TABLE ADD|REPLACE COLUMNS (colDef1, colDef2, ...) statement.

Definition at line 36 of file AlterTableAddReplaceColsStmt.java.

Constructor & Destructor Documentation

com.cloudera.impala.analysis.AlterTableAddReplaceColsStmt.AlterTableAddReplaceColsStmt ( TableName  tableName,
List< ColumnDef columnDefs,
boolean  replaceExistingCols 
)
inline

Member Function Documentation

void com.cloudera.impala.analysis.AlterTableAddReplaceColsStmt.analyze ( Analyzer  analyzer) throws AnalysisException
inline

Perform semantic analysis of node and all of its children. Throws exception if any errors found.

Parameters
analyzer
Exceptions
AnalysisException

Implements com.cloudera.impala.analysis.ParseNode.

Definition at line 69 of file AlterTableAddReplaceColsStmt.java.

References com.cloudera.impala.analysis.AlterTableAddReplaceColsStmt.columnDefs_, com.cloudera.impala.analysis.AlterTableStmt.getTargetTable(), and com.cloudera.impala.analysis.AlterTableAddReplaceColsStmt.replaceExistingCols_.

List<ColumnDef> com.cloudera.impala.analysis.AlterTableAddReplaceColsStmt.getColumnDescs ( )
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.AlterTableAddReplaceColsStmt.getReplaceExistingCols ( )
inline
boolean com.cloudera.impala.analysis.StatementBase.isExplain ( )
inlineinherited
void com.cloudera.impala.analysis.StatementBase.setIsExplain ( )
inlineinherited
String com.cloudera.impala.analysis.StatementBase.toSql ( )
inlineinherited

Print SQL syntax corresponding to this node.

See Also
com.cloudera.impala.parser.ParseNode::toSql()

Implements com.cloudera.impala.analysis.ParseNode.

Definition at line 41 of file StatementBase.java.

Referenced by com.cloudera.impala.analysis.CreateUdaStmt.analyze(), and com.cloudera.impala.analysis.QueryStmt.createSortInfo().

TAlterTableParams com.cloudera.impala.analysis.AlterTableAddReplaceColsStmt.toThrift ( )
inline

Member Data Documentation


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