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

Public Member Functions

 UseStmt (String db)
 
String getDatabase ()
 
String toSql ()
 
void analyze (Analyzer analyzer) throws AnalysisException
 
TUseDbParams toThrift ()
 
void setIsExplain ()
 
boolean isExplain ()
 

Protected Attributes

boolean isExplain_ = false
 

Private Attributes

final String database_
 

Detailed Description

Representation of a USE db statement.

Definition at line 25 of file UseStmt.java.

Constructor & Destructor Documentation

com.cloudera.impala.analysis.UseStmt.UseStmt ( String  db)
inline

Definition at line 28 of file UseStmt.java.

References com.cloudera.impala.analysis.UseStmt.database_.

Member Function Documentation

void com.cloudera.impala.analysis.UseStmt.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 40 of file UseStmt.java.

References com.cloudera.impala.authorization.Privilege.ANY, com.cloudera.impala.analysis.UseStmt.database_, and com.cloudera.impala.catalog.Catalog.DEFAULT_DB.

String com.cloudera.impala.analysis.UseStmt.getDatabase ( )
inline
boolean com.cloudera.impala.analysis.StatementBase.isExplain ( )
inlineinherited
void com.cloudera.impala.analysis.StatementBase.setIsExplain ( )
inlineinherited
String com.cloudera.impala.analysis.UseStmt.toSql ( )
inline
Returns
SQL syntax corresponding to this node.

Implements com.cloudera.impala.analysis.ParseNode.

Definition at line 35 of file UseStmt.java.

References com.cloudera.impala.analysis.UseStmt.database_.

TUseDbParams com.cloudera.impala.analysis.UseStmt.toThrift ( )
inline

Definition at line 47 of file UseStmt.java.

References com.cloudera.impala.analysis.UseStmt.getDatabase().

Member Data Documentation


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