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

Public Member Functions

 ShowDbsStmt ()
 
 ShowDbsStmt (String pattern)
 
String getPattern ()
 
String toSql ()
 
void analyze (Analyzer analyzer) throws AnalysisException
 
TShowDbsParams toThrift ()
 
void setIsExplain ()
 
boolean isExplain ()
 

Protected Attributes

boolean isExplain_ = false
 

Private Attributes

final String pattern_
 

Detailed Description

Representation of a SHOW DATABASES [pattern] statement. Acceptable syntax:

SHOW DATABASES SHOW SCHEMAS SHOW DATABASES LIKE 'pattern' SHOW SCHEMAS LIKE 'pattern'

Definition at line 30 of file ShowDbsStmt.java.

Constructor & Destructor Documentation

com.cloudera.impala.analysis.ShowDbsStmt.ShowDbsStmt ( )
inline

Default constructor, which creates a show statement which returns all databases.

Definition at line 38 of file ShowDbsStmt.java.

com.cloudera.impala.analysis.ShowDbsStmt.ShowDbsStmt ( String  pattern)
inline

Constructs a show statement which matches all databases against the supplied pattern.

Definition at line 46 of file ShowDbsStmt.java.

Member Function Documentation

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

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

Implements com.cloudera.impala.analysis.ParseNode.

Definition at line 53 of file ShowDbsStmt.java.

References com.cloudera.impala.analysis.ShowDbsStmt.pattern_.

TShowDbsParams com.cloudera.impala.analysis.ShowDbsStmt.toThrift ( )
inline

Member Data Documentation

final String com.cloudera.impala.analysis.ShowDbsStmt.pattern_
private

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